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

Why is the use of shell script?

966


What is the command to find out users on the system?

956


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3465


What is the difference between scripting and coding?

1021


What is the command to find out today's date?

1129


Why is shell scripting important?

1028


What is the use of .sh file?

1103


What is a shell in operating system?

1087


What is @echo off?

990


How to calculate the number of passed arguments?

1070


How to print pid of the current shell?

982


What is awk in shell scripting?

1007


Tell something about the super block in shell scripting?

1018


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

1204


What does .sh file contain?

935