Create a bash shell script to sort and then
uniq the file from the command line & store it to a new
file and output the results to the screen. Name this
script "sortAndUniq.sh"
Answer Posted / linuxdemon
sort $1 | uniq > output | echo "`cat output`"
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is shell prompt?
Calculate a real number calculation directly from the terminal and not any shell script.
How can I set the default rwx permission to all users on every file which is created in the current shell?
What is basename in shell script?
What is @echo off?
What are the advantages of shell script?
What does chmod do?
Write the syntax for "if" conditionals in linux?
How to print all array elements and their respective indexes?
Is shell and terminal the same?
Explain about sourcing commands?
Write a script to print the first 10 elements of fibonacci series.
write a shell script to check the failed jobs?
How do we delete all blank lines in a file?
What is the difference between grep and egrep?