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
Print the 10th line without using tail and head command.
What is sed in shell script?
What is shell company all about?
How would you compare the strings in a shell script?
What is basename in shell script?
What is .sh file in mac?
What is awk script?
How will you connect to a database server from linux?
What is sh in shell script?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
State the advantages of shell scripting?
What is console line?
What does debug script mean?
determine the output of the following command: echo ${new:-variable}
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command