home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
GNUTUE.ZIP
/
man
/
cmp.man
< prev
next >
Wrap
Text File
|
1992-07-18
|
1KB
|
38 lines
NAME
cmp - compare two files
SYNOPSIS
cmp [-cls] [--show-chars] [--verbose] [--silent] [--quiet] file1 [file2]
DESCRIPTION
This manual page documents the GNU version of cmp. cmp compares the two
given files, and if they differ, tells the first byte and line number
where they differ. The file name `-' is always the standard input. If
one file name is omitted, the standard input is used as well.
It exits with the value
0 The files are identical.
1 The files differ.
2 An error occurred.
OPTIONS
-c, --show-chars
Print the differing characters like `cat -t' (except that newlines
are printed as `^J').
-l, --verbose
Print the (decimal) offsets and (octal) values of all differing
bytes.
-s, --silent, --quiet
Do not print anything; only return an exit status indicating whether
the files differ.
The long-named options can be introduced with `+' as well as `--', for
compatibility with previous releases. Eventually support for `+' will be
removed, because it is incompatible with the POSIX.2 standard.