home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d747
/
aush.lha
/
AUSH
/
ExtraCmds.lha
/
englishdocs
/
cmp.doc
next >
Wrap
Text File
|
1992-09-04
|
884b
|
38 lines
NAME
cmp - compare two files
SYNOPSIS
cmp [ -r ] [ -s ] file1 file2
DESCRIPTION
The two files are compared. Under default options, cmp makes no
comment if the files are the same; if they differ, it announces
the byte number at which the difference occurred and the two
differing bytes. The differing bytes are printed (first) as an
hexadecimal value and (second) as a character (replaced by a
point if not printable).
If you specify - as file1 or file2, standard input is used.
Options:
-r Reverse comparison (announce bytes that are
the same).
-s Print nothing, return codes only.
RETURN CODES
0 if all went well (files are identicals)
1 in case of bad argument (fatal)
2 if files are differents
CHANGES FROM UNIX
-l option not supported
added -r option
print differences as hexa and character.
AUTHOR
Denis GOUNELLE
Last modified 04-Sep-92