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

$ rm -f res res1 ; while read line ; do cat uniqtest | grep
-wc $line >>res1 ; echo "$line :-> Count=" >>res ;done <uni
qtest ; paste res res1 >final_temp ; cat final_temp|sort -u
>final ; rm -f res res1 final_temp1

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk script?

989


Please give me example of " at command , contrab command " how to use

2808


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

1292


Explain about shebang?

1043


How do we create command aliases in a shell?

1006


What are the various stages of a linux process it passes through?

1186


Write down the syntax for all the loops in shell scripting.

1147


What does $@ mean in shell?

1048


What is the conditional statement in shell scripting?

1240


What is computer cli?

912


What is bash eval?

1020


How to use arguments in a script?

1112


What is shell variable?

923


What makes c shell a more preferable option than the bourne shell?

979


What are the different variables present in linux shell?

1113