Rev | Line | |
---|
[9] | 1 | .TH COMM 1
|
---|
| 2 | .SH NAME
|
---|
| 3 | comm \- print lines common to two sorted files
|
---|
| 4 | .SH SYNOPSIS
|
---|
| 5 | \fBcomm\fR [\fB\-123\fR] \fIfile1 file2\fR
|
---|
| 6 | .br
|
---|
| 7 | .de FL
|
---|
| 8 | .TP
|
---|
| 9 | \\fB\\$1\\fR
|
---|
| 10 | \\$2
|
---|
| 11 | ..
|
---|
| 12 | .de EX
|
---|
| 13 | .TP 20
|
---|
| 14 | \\fB\\$1\\fR
|
---|
| 15 | # \\$2
|
---|
| 16 | ..
|
---|
| 17 | .SH OPTIONS
|
---|
| 18 | .FL "\-1" "Suppress column 1 (lines present only in \fIfile1\fP)"
|
---|
| 19 | .FL "\-2" "Suppress column 2 (lines present only in \fIfile2\fP)"
|
---|
| 20 | .FL "\-3" "Suppress column 3 (lines present in both files)"
|
---|
| 21 | .SH EXAMPLES
|
---|
| 22 | .EX "comm file1 file2" "Print all three columns"
|
---|
| 23 | .EX "comm \-12 file1 file2" "Print only lines common to both files"
|
---|
| 24 | .SH DESCRIPTION
|
---|
| 25 | .PP
|
---|
| 26 | Two sorted files are read and compared.
|
---|
| 27 | A three column listing is produced.
|
---|
| 28 | Files only in
|
---|
| 29 | .I file1
|
---|
| 30 | are in column 1;
|
---|
| 31 | files only in
|
---|
| 32 | .I file2
|
---|
| 33 | are in column 2;
|
---|
| 34 | files common to both files are in column 3.
|
---|
| 35 | The file name \- means \fIstdin\fR.
|
---|
| 36 | .SH "SEE ALSO"
|
---|
| 37 | .BR cmp (1),
|
---|
| 38 | .BR diff (1),
|
---|
| 39 | .BR sort (1).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.