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 / neennii
sort -u wordtestfile.txt | tee outuniquefile.txt | echo "total unique words are" `wc -w` ; cat outuniquefile.txt
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How can you get the value of pi till a 100 decimal places?
What is the best scripting language?
What are the various stages of a linux process it passes through?
What is shell scripting used for?
What is the default shell of solaris?
What does egrep mean?
How do I debug a shell script?
What is $1 in shell scripting?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
What is subshell?
How do we create command aliases in a shell?
What is the use of .sh file?
How do you debug a script?
What is a boot block?
What is the meaning of $1 in shell script?