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 / vipul dalwala

sort $1 | uniq | tee output.txt

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is shell and shell script?

1126


Is powershell a language?

1057


wats the deinitions for shell utility and filter?

2327


How do scripts work?

1049


How will you emulate wc –l using awk?

1545


What is web script?

1104


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

4138


How do I run a script on mac?

1113


What is path in shell script?

1102


What is a shell script? Can you name some of its advantages?

1077


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

983


What are different types of shell?

936


Is it possible to substitute "ls" command in the place of "echo" command?

1066


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

990


What is the fastest scripting language?

1010