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
How can I send a mail with a compressed file as an attachment?
What is shell geeksforgeeks?
What is path variable bash?
determine the output of the following command: echo ${new:-variable}
What is the difference between grep and egrep?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What are the different variables present in linux shell?
What is a command line shell?
What is @echo off?
What can scripts do?
What is the use of "$?" Sign in shell script?
How do scripts work?
Why is used in shell scripting?
What is shell chemistry?
What is difference between bash and shell?