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
Explain about "s" permission bit in a file?
Why is it called a shell?
What is a scripting language simple definition?
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.
How to open a read-only file in the shell?
What does $1 mean in bash?
What does echo $0 do?
How do I stop script errors?
What is awk in shell scripting?
what is tickets $ what low,medium,high priorite pls define time also
Is shell scripting a programming language?
How will you emulate wc –l using awk?
Explain about shebang?
What does debug script mean?
What is the difference between scripting and coding?