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 shell prompt?

1015


Calculate a real number calculation directly from the terminal and not any shell script.

1215


How can I set the default rwx permission to all users on every file which is created in the current shell?

1421


What is basename in shell script?

1051


What is @echo off?

999


What are the advantages of shell script?

1019


What does chmod do?

1174


Write the syntax for "if" conditionals in linux?

1110


How to print all array elements and their respective indexes?

955


Is shell and terminal the same?

1048


Explain about sourcing commands?

1082


Write a script to print the first 10 elements of fibonacci series.

2335


write a shell script to check the failed jobs?

4397


How do we delete all blank lines in a file?

1103


What is the difference between grep and egrep?

1129