BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / comm.0
COMM(1) UNIX Programmer's Manual COMM(1)
N\bNA\bAM\bME\bE
comm - select or reject lines common to two sorted files
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
c\bco\bom\bmm\bm [ -\b- [ 1\b12\b23\b3 ] ] file1 file2
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bC_\bo_\bm_\bm reads _\bf_\bi_\bl_\be_\b1 and _\bf_\bi_\bl_\be_\b2, which should be ordered in ASCII
collating sequence, and produces a three column output:
lines only in _\bf_\bi_\bl_\be_\b1; lines only in _\bf_\bi_\bl_\be_\b2; and lines in both
files. The filename `-' means the standard input.
Flags 1, 2, or 3 suppress printing of the corresponding
column. Thus c\bco\bom\bmm\bm -\b-1\b12\b2 prints only the lines common to the
two files; c\bco\bom\bmm\bm -\b-2\b23\b3 prints only lines in the first file but
not in the second; c\bco\bom\bmm\bm -\b-1\b12\b23\b3 is a no-op.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
cmp(1), diff(1), uniq(1)
Printed 7/9/88 April 29, 1985 1