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 / vipul dalwala
sort $1 | uniq | tee output.txt
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What does $$ mean in shell script?
How do scripts work?
What is subshell?
How do I run a .sh file?
Please give me example of " at command , contrab command " how to use
What is sh in shell script?
How to debug the problems encountered in the shell script/program?
Calculate a real number calculation directly from the terminal and not any shell script.
Why is shell scripting important?
What lives in a shell?
How do I run a shell script in powershell?
What is scripting used for?
What is echo $shell?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What does the sh command do?