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.

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

hw will u use awk in replacing cahrs and files

3250


What does awk stand for?

1090


What are bash commands?

1172


What is nr in awk command?

1214


What are filter commands in unix?

1204


What does the metacharacter mean?

1141


Which command can you use to find the currently running process in unix server?

1130


What is used to type command?

1066


What happens when we execute a unix command?

1149


What is awk command used for?

1250


Why is it called a shebang?

1197


Differentiate cmp command from diff command.

1181


What command will change your prompt to myprompt?

1334


What does touch command do in unix?

1437


What is grep command in unix with examples?

1225