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

How can I send a mail with a compressed file as an attachment?

1074


What is shell geeksforgeeks?

1169


What is path variable bash?

1087


determine the output of the following command: echo ${new:-variable}

1022


What is the difference between grep and egrep?

1186


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1113


What are the different variables present in linux shell?

1153


What is a command line shell?

1102


What is @echo off?

1068


What can scripts do?

1160


What is the use of "$?" Sign in shell script?

1213


How do scripts work?

1079


Why is used in shell scripting?

1045


What is shell chemistry?

1025


What is difference between bash and shell?

1170