📄 comm.1
字号:
.\" SCCSID: @(#)comm.1 8.1 9/11/90.TH comm 1 .SH Namecomm \- compare sorted data.SH Syntax.B comm[\fB\-\fR\|[\fB123\fR\|]\|] \fIfile1 file2\fR.SH Description.NXR "comm command".NXR "file" "comparing".NXR "comparing files with comm"The.PN commcommand reads.I file1and.I file2,which should be ordered in ASCII collating sequence,and produces a three column output: lines only in.I file1;lines only in.I file2;and lines in both files.The file name `\-' means the standard input..SH Options.IP \fB1\fR 0.3iSuppresses column one: lines in file1 only..IP \fB2\fR 0.3iSuppresses column two: lines in file2 only..IP \fB\3\fR 0.3iSuppresses column three: lines in file1 and file2. .PPThus.PN comm.B \-12prints only the lines common to the two files.And.PN comm.B \-23prints only lines in the first file but not in the second. Finally,.PN comm.B \-123is not an option..SH See Alsocmp(1), diff(1), diff3(1), diffmk(1), join(1), uniq(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -