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

which command is used to stop a running process in unix?

8 Answers  


What is the use of egrep command in unix?

0 Answers  


What is the function of grep command in unix?

0 Answers  


What command will change your prompt to myprompt?

0 Answers  


Describe the zip/unzip command using gzip.

0 Answers  






Name the general commands in using unix os for a beginner?

0 Answers  


what these two commands prints "echo test","cat test"?

6 Answers   TCS, Wipro,


Write a command to kill the last background job?

0 Answers  


What is the command to compare two files in unix?

0 Answers  


what are the different hardwares available?

1 Answers  


How do I search for text in vi?

0 Answers  


How to rename files and folders?

7 Answers   IBM, Oracle,


Categories