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
How do I start a shell script?
How do you create a shortcut in linux?
What does debug script mean?
Is bash a shell script?
What command needs to be used to take the backup?
What is shell application?
What is shell geeksforgeeks?
What is the use of "$#" in shell scripting?
What is shell chemistry?
What is the use of echo in shell script?
How do scripts work?
What are the different types of shell scripting?
Explain about "s" permission bit in a file?
What is the purpose of scripting?
What is another name for a bash shell script that you might see?