It was Tue, 26 Jun 2001 00:42:20 +1200 when John Rye wrote:
>I have two text files, one of around 900 lines and another of about 1600
>lines. Both files have duplicated lines.
>
>I'm trying a get a third file which contains ONLY the unique lines from
>these two files.
>
>Initially it seemed that 'diff' would be the answer but for the life of
>me I cannot work out how to get the result I'm looking for.
Not sure if this is what you need:
uniq file1 > tempfile
uniq file2 >> tempfile
uniq tempfile > unique_file
Paul
--
People are unconditionally guaranteed to be full of defects.
http://nlpagan.net - Registered Linux User 174403
Linux Mandrake 8.0 - Sylpheed 0.4.99
** http://www.care2.com - when you care **