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


Please Help Members By Posting Answers For Below Questions

Explain about "s" permission bit in a file?

609


Why is it called a shell?

505


What is a scripting language simple definition?

555


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.

2226


How to open a read-only file in the shell?

640






What does $1 mean in bash?

614


What does echo $0 do?

580


How do I stop script errors?

573


What is awk in shell scripting?

553


what is tickets $ what low,medium,high priorite pls define time also

1718


Is shell scripting a programming language?

574


How will you emulate wc –l using awk?

904


Explain about shebang?

620


What does debug script mean?

545


What is the difference between scripting and coding?

535