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...


Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.



Write a command that will output the sorted contents of a file named in.txt and place the output in ..

Answer / marigold

sort in.txt | uniq - d > out.txt

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Unix Commands Interview Questions

how will u execute a file in unix

8 Answers   QA,


What is grep and how do you use it?

0 Answers  


What is nr in awk command?

0 Answers  


Which command is used to copy files?

0 Answers  


How we will execute previous command in vi editor?

8 Answers   Infosys,


What are file permissions in Unix, and how are they represented?

2 Answers  


How do you repeat a command in terminal?

0 Answers  


How do you move a process which is running background to foreground?

9 Answers  


What is the pipe command?

0 Answers  


which command is used to identify the type of the file?

3 Answers  


What is the use of awk command in unix?

0 Answers  


What do know about tee command?

0 Answers  


Categories