The comm trick was new to me, but it'll work, too, though I believe the syntax says that it needs to be -23, not -13 (he wants only the unique lines in file1 that are not in file2, not the unique lines that are in file2 but not in file1).
comm is definitely slicker, though, than my solution (cat file1 file2 file2 | sort | uniq -u > file3), although mine might be able to teach a little more of things that are less specialized. I do like that comm doesn't require that sort, though... it'll leave the lines in the orignal order, a bonus, probably. > -----Original Message----- > From: Michael Tiernan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 9:31 AM > To: '[EMAIL PROTECTED]' > Subject: Re: Agian , some compare problems > > > On Wednesday 04 September 2002 09:07, Ward William E DLDN said: > > However, THIS would work: > > I am not quite sure but I'll belive you. > > However, it would be mucho easier to use 'comm' > % comm -13 file1 file2 > file3 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list