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...

Create a bash shell script to sort and then
uniq the file from the command line & store it to a new
file and output the results to the screen. Name this
script "sortAndUniq.sh"

Answer Posted / linuxdemon

sort $1 | uniq > output | echo "`cat output`"

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a scripting language simple definition?

1103


How do I open the shell in cmd?

1143


How will you emulate wc –l using awk?

1537


How to print pid of the current shell?

998


How do I run a .sh file on mac?

1195


How are shells born?

972


What are the zombie processes?

972


What are the different types of shell scripting?

1119


What does $$ mean in shell script?

1059


What is scripting autism?

1216


How will you find the 99th line of a file using only tail and head command?

2539


How do I edit a .sh file?

1145


What is sudo command?

1063


Explain about gui scripting?

1097


Is scripting and coding the same thing?

994