Nope; that'll give him the list of unique words in BOTH files. So, if file1 is
a b c d e and file2 is a c d e f The output would be b f which is NOT what he wants. He needs to cat that AGAIN with file2 and do another uniq to get just file1. However, THIS would work: cat file1 file2 file2 | sort | uniq -u > file3 Bill Ward > -----Original Message----- > From: Banze, Andreas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 4:39 AM > To: '[EMAIL PROTECTED]' > Subject: RE: Agian , some compare problems > > > > I wish to compare those 2 files , and create as output file 3 > > which consist of the words in file 1 which are NOT in file 2. > > In other words , all words which exist in file 2 should be > > removed from file 1 > > cat file1 file2 | sort | uniq -u > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list