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
Why is the use of shell script?
What is the command to find out users on the system?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
What is the difference between scripting and coding?
What is the command to find out today's date?
Why is shell scripting important?
What is the use of .sh file?
What is a shell in operating system?
What is @echo off?
How to calculate the number of passed arguments?
How to print pid of the current shell?
What is awk in shell scripting?
Tell something about the super block in shell scripting?
Calculate a real number calculation directly from the terminal and not any shell script.
What does .sh file contain?