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 run a script from command prompt?
Given a file find the count of lines containing the word "abc".
What language is bash written in?
Can shell script run on windows?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
determine the output of the following command: echo ${new:-variable}
Is shell scripting useful?
What is the difference between break and continue commands?
what is info area how many types?
Explain about gui scripting?
What lives in a shell?
Write a script to print the first 10 elements of fibonacci series.
How to check if a directory exists?
What is the use of "$?" Sign in shell script?
Where are cowrie shells found?