|
|
1.1 root 1: .\" @(#)comm.1 6.1 (Berkeley) 4/29/85
2: .\"
3: .TH COMM 1 "April 29, 1985"
4: .AT 3
5: .SH NAME
6: comm \- 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
17: reads
18: .I file1
19: and
20: .I file2,
21: which should be ordered in ASCII collating sequence,
22: and produces a three column output: lines only in
23: .I file1;
24: lines only in
25: .I file2;
26: and lines in both files.
27: The filename `\-' means the standard input.
28: .PP
29: Flags 1, 2, or 3 suppress printing of the corresponding
30: column.
31: Thus
32: .B comm
33: .B \-12
34: prints only the lines common to the two files;
35: .B comm
36: .B \-23
37: prints only lines in the first file but not in the second;
38: .B comm
39: .B \-123
40: is a no-op.
41: .PP
42: .SH "SEE ALSO"
43: cmp(1), diff(1), uniq(1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.