I frequently don't need the output from comm; just the number of
lines that would go in the three columns.
I've made a small patch to implement this in comm.c [attached].
Sample usage:
$ sed 1d /tmp/sorted /tmp/sorted-with-a-line-removed
$ comm -123 /tmp/sorted /tmp/sorted-with-a-line-removed
1 0 45
$ comm -23 /tmp/sorted /tmp/sorted-with-a-line-removed
a line that will be removed
1 0 45
If you accept this feature, I'll patch the info and manpage and
re-submit this patch with the documentation changes.
The total code change is just 25 lines so I presume you don't need
any complex legalese, right?
--
Andrew Stribblehill <address@hidden>
Senior Systems Programmer, IT Service, University of Durham, England