This will spot exact matches between lines in the two files:
sort file1 file2 | uniq -d > dupes
Then
sort file1 dupes | uniq -u > newfile1
and
sort file2 dupes | uniq -u > newfile2
will give you new versions of file1 and file2 without the dupes.
> Hi !
>> I've got two files one email address per line in each. I want to separate
> them in the way that if user1 has presence in both list take him/her out
> and put into another file. Which tool would be thge best ? The lists has
> 28000 and 29000 addresses.
> Thanks,
> Ago
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!