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
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
What is shell environment?
How to print the first array element?
What is the difference between break and continue commands?
What is the use of "$#" in shell scripting?
What is c in shell script?
What is $1 in shell scripting?
How do I stop script errors?
What is bash used for?
What is the significance of the shebang line in shell scripting?
Why is it called a shell?
How are shells born?
What does echo mean in scripting?
How important is shell scripting?
Which is better perl or shell scripting?