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 the crontab?
What is echo $shell?
What does $$ mean in shell script?
What are zombie processes?
Is shell and terminal the same?
What is shell chemistry?
What is the syntax of while loop in shell scripting?
Is scripting and coding the same thing?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
How can we find the process name from its process id?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is a beat in a script?
How to print all array elements and their respective indexes?
What is mac default shell?
I want to connect to a remote server and execute some commands, how can I achieve this?