Home » Infrastructure » Linux » Compare unique scripting puzzle
Compare unique scripting puzzle [message #175570] Fri, 02 June 2006 23:08 Go to next message
o5o6o
Messages: 1
Registered: June 2006
Junior Member
I have six text files, each contain a list of email addresses, one address per line. I would like to be sure there are no duplicate email addresses among the six files. I have searched the internet for tips and tricks, and have read about comm, cmp, uniq, and diff, and have tried various commands, but I still can't seem to get the job done. Any advice from the group on this matter would be greatly appreciated. Thank you.
Re: Compare unique scripting puzzle [message #175581 is a reply to message #175570] Sat, 03 June 2006 01:38 Go to previous message
Frank Naude
Messages: 4580
Registered: April 1998
Senior Member
This should do it:

[code]$ cat f1 f2 f3 f4 f5 f6 | sort | uniq[/coce]
Previous Topic: Linux 9 boot problem.
Next Topic: SGA SIZE In LINUX
Goto Forum:
  


Current Time: Mon May 27 04:33:36 CDT 2024