write a shell script that counts a number of unique word
contained in the file and print them in alphabetical order
line by line?
Answer Posted / manuswami
$ rm -f res res1 ; while read line ; do cat uniqtest | grep
-wc $line >>res1 ; echo "$line :-> Count=" >>res ;done <uni
qtest ; paste res res1 >final_temp ; cat final_temp|sort -u
>final ; rm -f res res1 final_temp1
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
What is awk script?
Please give me example of " at command , contrab command " how to use
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
Explain about shebang?
How do we create command aliases in a shell?
What are the various stages of a linux process it passes through?
Write down the syntax for all the loops in shell scripting.
What does $@ mean in shell?
What is the conditional statement in shell scripting?
What is computer cli?
What is bash eval?
How to use arguments in a script?
What is shell variable?
What makes c shell a more preferable option than the bourne shell?
What are the different variables present in linux shell?