COMM.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:1k
- .TH COMM 1
- .SH NAME
- comm - print lines common to two sorted files
- .SH SYNOPSIS
- fBcommfR [fB-123fR] fIfile1 file2fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-1" "Suppress column 1 (lines present only in fIfile1fP)"
- .FL "-2" "Suppress column 2 (lines present only in fIfile2fP)"
- .FL "-3" "Suppress column 3 (lines present in both files)"
- .SH EXAMPLES
- .EX "comm file1 file2" "Print all three columns"
- .EX "comm -12 file1 file2" "Print only lines common to both files"
- .SH DESCRIPTION
- .PP
- Two sorted files are read and compared.
- A three column listing is produced.
- Files only in
- .I file1
- are in column 1;
- files only in
- .I file2
- are in column 2;
- files common to both files are in column 3.
- The file name - means fIstdinfR.
- .SH "SEE ALSO"
- .BR cmp (1),
- .BR diff (1),
- .BR sort (1).