| CMP(1) | General Commands Manual | CMP(1) |
cmp - compare two files
cmp [ -lsL ] file1 file2 [ offset1 [ offset2 ] ]
The two files are compared. A diagnostic results if the contents differ, otherwise there is no output. By default, cmp prints the byte number of the first differing byte.
The options are:
If offsets are given, comparison starts at the designated byte position of the corresponding file. Offsets that begin with 0x are hexadecimal; with 0, octal; with anything else, decimal.
/appl/cmd/cmp.b