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
What are the different commands available to check the disk usage?
Why is shell scripting important?
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 is the difference between break and continue commands?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
How to calculate the number of passed arguments?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What is shell variable?
Is scripting and coding the same thing?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What does egrep mean?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
What's the difference between scripting and coding?
What is the syntax of while loop in shell scripting?
What does .sh file contain?