⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmp.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.TH cmp 1.SH Namecmp \- compare two files.SH Syntax.B cmp[\fB\-l\fR | \fB\-s\fR] \fIfile1 file2\fR  [ \fIskip1\fR ]  [ \fIskip2\fR ].SH Description.NXR "cmp command".NXR "file" "comparing".NXR "comparing files with cmp"The.PN cmpcommand compares two files. If either.I file1or.I file2is `\-',standard input is used for the file.With no options,.PN cmpmakes no comment if the files are the same.If they differ, it reports the byte and line numberat which the difference occurred to standard output.If one file is an initial subsequenceof the other a message including the file name is written tostandard error.  .PPThe optional.I skip1and.I skip2parameters are initial byte offsets into.I file1and.I file2respectively and may be either octal, by specifying a leading 0,or decimal.  When using.I skip1and.I skip2the offset is treated as the start of the respective input file.Only one option may be specified at a time.  Only one of the inputfiles may be standard input at a time.  Because the line numberis not calculated when using either of the options the use of eitherflag will increase the speed of.PN cmp ..SH Options.IP \fB\-l\fR 0.3iLong format:  prints the byte number (decimal) and the differingbytes (octal) for each difference..IP \fB\-s\fR 0.3iSuppresses normal output and sets the exit codeonly..SH DiagnosticsExit code 0 is returned for identicalfiles, 1 for different files, and 2 for aninaccessible or missing argument..SH See Alsocomm(1), diff(1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -