Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to get the first line from a file using just the terminal?

1057


What is bash shell command?

962


How will you print the login names of all users on a system?

919


What is the command to find out today's date?

1082


How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?

1056


What is shell chemistry?

925


Explain about debugging?

966


what is info area how many types?

2705


What is shell application?

947


What is the lifespan of a variable inside a shell script?

1580


What are the different communication commands available in the shell?

912


What is the command to find out users on the system?

920


What is the purpose of scripting?

1010


What language is bash?

853


What is difference between shell and bash scripting?

938