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 will you emulate wc –l using awk?
How can the contents of a file inside jar be read without extracting in a shell script?
How do you find out What is your shell?
Where is bash history?
What is difference between shell and bash scripting?
Is shell a part of kernel?
Given a file find the count of lines containing the word "abc".
How to redirect both standard output and standard error to the same location?
What does $1 mean in bash?
What does path stand for?
State the advantages of shell scripting?
Which scripting language is best for automation?
is this growing field and what is average package in this?
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.
What is path in shell script?