NAMEcmp - compare two files
SYNOPSIScmp [ -lsL ] file1 file2 [ offset1 [ offset2 ] ]
DESCRIPTIONThe two files are compared. A diagnostic results if the contents differ, otherwise there is no output.
The options are:
- Print the byte number (decimal) and the differing bytes (hexadecimal) for each difference.
- Print nothing for differing files, but set the exit status.
- Print the line number of the first differing byte.
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.