source: trunk/minix/man/man1/comm.1@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 846 bytes
Line 
1.TH COMM 1
2.SH NAME
3comm \- 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
26Two sorted files are read and compared.
27A three column listing is produced.
28Files only in
29.I file1
30are in column 1;
31files only in
32.I file2
33are in column 2;
34files common to both files are in column 3.
35The 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.