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 / supriya
sort -u filename1 |tee file2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I send a mail with a compressed file as an attachment?
Can we run shell script in windows?
Is shell and terminal the same?
What is the crontab?
What can you do with powershell?
How to open a read-only file in the shell?
What is the syntax of "nested if statement" in shell scripting?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
What are script files?
How do I run a script from command prompt?
What does $@ mean in shell?
What is sudo command?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What is the difference between grep and egrep?
Is shell scripting difficult?