On Sep 13, 2007, at 2:38 PM, Kurt Buff wrote:

Instead of grep -v take a look at comm.

Interesting! I just looked at the man page, and while I don't think it
it's going to be directly useful (or I'm just not reading the page
correctly), it's a new utility to me - I'll keep it in mind for other

Maybe I haven't understood what you are after.

If you want to get lines that exist in either file1 or file2 but not both (and if the files are already sorted) then

  comm -3 file1  file2

will do that.


Jeffrey Goldberg                        http://www.goldmark.org/jeff/

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to