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 / phani

cat filename | uniq -u | sort -n

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which shell is the best?

576


What is a scripting language simple definition?

562


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

2978


How to set an array in linux?

598


Why are there shells on the beach?

599






wats the deinitions for shell utility and filter?

1849


How to print all array elements and their respective indexes?

512


How do you create a shortcut in linux?

597


How does shell scripting work?

620


What is difference between bash and shell?

558


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

1723


What are the advantages of shell script?

525


What is shell chemistry?

541


How do I run a .sh file?

620


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

1709