CMP.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH CMP 1
- .SH NAME
- cmp - compare two files
- .SH SYNOPSIS
- fBcmpfR [fB-lsfR] fIfile1 file2fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-l" "Loud mode. Print bytes that differ (in octal)"
- .FL "-s" "Silent mode. Print nothing, just return exit status"
- .SH EXAMPLES
- .EX "cmp file1 file2" "Tell whether the files are the same"
- .EX "cmp -l file1 file2" "Print all corresponding bytes that differ"
- .SH DESCRIPTION
- .PP
- Two files are compared.
- If they are identical, exit status 0 is returned.
- If they differ, exit status 1 is returned.
- If the files cannot be opened, exit status 2 is returned.
- If one of the file arguments is -, then
- fIstdinfR is compared to
- the other file.
- .SH "SEE ALSO"
- .BR comm (1),
- .BR diff (1).