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 you find out What is your shell?
How do I open a jshell in cmd?
How to calculate the number of passed arguments?
How to get the last line from a file using just the terminal?
Is bash a shell script?
State the advantages of shell scripting?
How many fields are present in a crontab file and what does each field specify?
What is the difference between break and continue commands?
determine the output of the following command: echo ${new:-variable}
What is console line?
How will you pass and access arguments to a script in linux?
Is powershell a bash?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
Is shell scripting a language?
What is bash eval?