added depend label
[unix-history] / usr / src / usr.bin / comm / comm.1
CommitLineData
daa8094e 1.\" @(#)comm.1 6.1 (Berkeley) %G%
d3b83d9f 2.\"
daa8094e 3.TH COMM 1 ""
d3b83d9f
KM
4.AT 3
5.SH NAME
6comm \- select or reject lines common to two sorted files
7.SH SYNOPSIS
8.B comm
9[
10.B \-
11[
12.B 123
13]
14] file1 file2
15.SH DESCRIPTION
16.I Comm
17reads
18.I file1
19and
20.I file2,
21which should be ordered in ASCII collating sequence,
22and produces a three column output: lines only in
23.I file1;
24lines only in
25.I file2;
26and lines in both files.
27The filename `\-' means the standard input.
28.PP
29Flags 1, 2, or 3 suppress printing of the corresponding
30column.
31Thus
32.B comm
33.B \-12
34prints only the lines common to the two files;
35.B comm
36.B \-23
37prints only lines in the first file but not in the second;
38.B comm
39.B \-123
40is a no-op.
41.PP
42.SH "SEE ALSO"
43cmp(1), diff(1), uniq(1)