[Gllug] Comm

tet at accucard.com tet at accucard.com
Mon Feb 18 18:23:41 UTC 2002


>I don't believe you example explains my problem, I needed the "comm -23" 
>command to exclude the lines common to both files, and those lines only in 
>file 2

So you want lines that are in file 1, but not file 2? comm is the wrong
tool because it shows common lines, not differences.

	diff file1 file2 | egrep '^<' | cut -c3-

Won't work with unsorted input files, but you've already said that yours
are sorted.

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list