cmp [-Ll] file1 file2 [offset1] [offset2]
Description
The cmp command does a byte-wise comparison the contents of files file1 and file2 starting at offsets offset1 and offset2 (default 0).
If there are no differences, the command produces no output. If a difference is detected, a message is generated to standard output reporting the location of the first different character in the format shown below:
file1 file2 differ: char xxx
where xxx is in decimal format.
Options
Note
Though the output line describes char differences, the comparison is done on a byte-by-byte basis.
infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights
reserved.