comm(1)
_________________________________________________________________
comm Command
select or reject lines common to two sorted files
_________________________________________________________________
SYNTAX
comm [ - [ 123 ] ] file1 file2
DESCRIPTION
Comm reads file1 and file2, which should be ordered in ASCII
collating sequence (see sort(1)). It then produces a three-
column output: lines only in file1; lines only in file2; and
lines in both files. If either file1 or file2 is -, then
standard input is used.
Flags 1, 2, or 3 suppress printing of the corresponding column.
Thus comm -12 prints only the lines common to the two files; comm
-23 prints only lines in the first file but not in the second;
and comm -123 is a no-op.
_________________________________________________________________
EXAMPLES
$ comm report.1 report.2
Compares "report.1" and "report.2" and lists the lines only in
"report.1" in column 1, those only in "report.2" in column 2.
The lines that the files have in common are in column 3.
$ comm -12 - report.2
Compares "report.2" to standard input and prints only the lines
that are identical.
$ comm -23 report.1 report.2 >change
Compares "report.1" and "report.2" and sends the lines that are
only in "report.1" to the file called "change".
_________________________________________________________________
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
comm(1)
SEE ALSO
cmp(1), diff(1), sort(1), uniq(1).
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)