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.

Answer Posted / marigold

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

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

964


How does shebang work?

594


Differentiate cmp command from diff command.

592


hw will u use awk in replacing cahrs and files

2738


What is the command to compare two files in unix?

627






What is pipe command in unix?

677


What are the unix commands?

560


What is command statement?

543


What is the command to find hidden files in the current directory?

589


What are reported commands?

570


What is the use of find command in unix?

588


What is the significance of the 'tee' command?

600


What does 'mkdir' command do in UNIX?

667


Is command prompt unix?

586


Which command is used to restrict incoming messages?

594