]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/diff/man/cmp.1
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / diff / man / cmp.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
2 .TH CMP "1" "April 2004" "diffutils 2.8.7" "User Commands"
3 .SH NAME
4 cmp \- compare two files byte by byte
5 .SH SYNOPSIS
6 .B cmp
7 [\fIOPTION\fR]... \fIFILE1 \fR[\fIFILE2 \fR[\fISKIP1 \fR[\fISKIP2\fR]]]
8 .SH DESCRIPTION
9 Compare two files byte by byte.
10 .TP
11 \fB\-b\fR  \fB\-\-print\-bytes\fR
12 Print differing bytes.
13 .TP
14 \fB\-i\fR SKIP  \fB\-\-ignore\-initial\fR=\fISKIP\fR
15 Skip the first SKIP bytes of input.
16 .HP
17 \fB\-i\fR SKIP1:SKIP2  \fB\-\-ignore\-initial\fR=\fISKIP1\fR:SKIP2
18 .IP
19 Skip the first SKIP1 bytes of FILE1 and the first SKIP2 bytes of FILE2.
20 .TP
21 \fB\-l\fR  \fB\-\-verbose\fR
22 Output byte numbers and values of all differing bytes.
23 .TP
24 \fB\-n\fR LIMIT  \fB\-\-bytes\fR=\fILIMIT\fR
25 Compare at most LIMIT bytes.
26 .TP
27 \fB\-s\fR  \fB\-\-quiet\fR  \fB\-\-silent\fR
28 Output nothing; yield exit status only.
29 .TP
30 \fB\-v\fR  \fB\-\-version\fR
31 Output version info.
32 .TP
33 \fB\-\-help\fR
34 Output this help.
35 .PP
36 SKIP1 and SKIP2 are the number of bytes to skip in each file.
37 SKIP values may be followed by the following multiplicative suffixes:
38 kB 1000, K 1024, MB 1,000,000, M 1,048,576,
39 GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y.
40 .PP
41 If a FILE is `-' or missing, read standard input.
42 Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
43 .SH AUTHOR
44 Written by Torbjorn Granlund and David MacKenzie.
45 .SH "REPORTING BUGS"
46 Report bugs to <bug-gnu-utils@gnu.org>.
47 .SH COPYRIGHT
48 Copyright \(co 2004 Free Software Foundation, Inc.
49 .br
50 This is free software; see the source for copying conditions.  There is NO
51 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
52 .SH "SEE ALSO"
53 The full documentation for
54 .B cmp
55 is maintained as a Texinfo manual.  If the
56 .B info
57 and
58 .B cmp
59 programs are properly installed at your site, the command
60 .IP
61 .B info diff
62 .PP
63 should give you access to the complete manual.