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 to convert a hidden file to normal visible file?

8 Answers  


what are the different commands used to view the contents of a file?

5 Answers  


what are filters?

6 Answers  


How do I run a bash script?

0 Answers  


How can you change the owner or group of a file?

1 Answers  


how will you login one server's shell prompt to an another server?

5 Answers   Cosmic Infotech, Perot Systems,


Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance

3 Answers   TCS,


What do chown command do?

0 Answers  


distinguish between paging and swapping?

1 Answers   Infosys,


How do you change your account's password?

6 Answers  


What is grep in bash?

0 Answers  


How does one process we can start an executable file? How to get the PID process, which we started?

6 Answers  


Categories