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 shell is bin sh?
What is computer cli?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is wc in shell script?
How do I start a shell script?
What does $1 mean in bash?
Is shell a scripting language?
what is info area how many types?
How does ls command work?
Write down the syntax of "for " loop
How will you emulate wc –l using awk?
What is bourne shell scripting?
What is the significance of the shebang line in shell scripting?
What is shell scripting used for?
Is bash an operating system?