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

What is used to type command?

0 Answers  


What is nr in awk command?

0 Answers  


what does a process mean?

5 Answers   Infosys,


What is the protocol for PING command?

1 Answers   IBM,


What UNIX command will control the default file permissions when files are created?

4 Answers  






solaris Run level?

3 Answers   Wipro,


How to setup Disk space as well as memory in solaris10?

4 Answers  


What is the size of time_t?

0 Answers  


What is grep short for?

0 Answers  


Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


how many internal commands is there in UNIX?

3 Answers   TCS, Virtusa,


Why is shebang used?

0 Answers  


Categories