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 / supriya

sort -u filename1 |tee file2

Is This Answer Correct ?    0 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


Can we run shell script in windows?

1204


Is shell and terminal the same?

1108


What is the crontab?

1139


What can you do with powershell?

1187


How to open a read-only file in the shell?

1175


What is the syntax of "nested if statement" in shell scripting?

1137


How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?

1156


What are script files?

1065


How do I run a script from command prompt?

1133


What does $@ mean in shell?

1084


What is sudo command?

1103


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1208


What is the difference between grep and egrep?

1186


Is shell scripting difficult?

999