[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
comm: summary patch
From: |
Andrew Stribblehill |
Subject: |
comm: summary patch |
Date: |
Sat, 9 Jul 2005 23:57:57 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
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
comm.diff
Description: Text document
- comm: summary patch,
Andrew Stribblehill <=