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 / linuxdemon
sort $1 | uniq > output | echo "`cat output`"
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What does it mean to debug a script?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is bash command used for?
What are the default permissions of a file when it is created?
What is sed in shell script?
What is the syntax of while loop in shell scripting?
What is a batch file used for?
How do I run a script on mac?
Differentiate between ‘ and ” quotes.
What are the advantages of shell scripting?
State the advantages of shell scripting?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What does echo mean in scripting?
What is a shell script? Can you name some of its advantages?
What is the default ubuntu terminal?