CMP(1) BSD Reference Manual CMP(1) NNAAMMEE ccmmpp - compare two files SSYYNNOOPPSSIISS ccmmpp [--ll | --ss] _f_i_l_e_1 _f_i_l_e_2 [_s_k_i_p_1 [_s_k_i_p_2]] DDEESSCCRRIIPPTTIIOONN The cmp utility compares two files of any type and writes the results to the standard output. By default, ccmmpp is silent if the files are the same; if they differ, the byte and line number at which the first differ- ence occurred is reported. Bytes and lines are numbered beginning with one. The following options are available: --ll Print the byte number (decimal) and the differing byte values (oc- tal) for each difference. --ss Print nothing for differing files; return exit status only. The optional arguments _s_k_i_p_1 and _s_k_i_p_2 are the byte offsets from the be- ginning of _f_i_l_e_1 and _f_i_l_e_2, respectively, where the comparison will be- gin. The offset is decimal by default, but may be expressed as an hex- adecimal or octal value by preceding it with a leading ``0x'' or ``0''. The ccmmpp utility exits with one of the following values: 0 The files are identical. 1 The files are different; this includes the case where one file is identical to the first part of the other. In the latter case, if the --ss option has not been specified, ccmmpp writes to standard output that EOF was reached in the shorter file (before any differences were found). >1 An error occurred. SSEEEE AALLSSOO diff(1), diff3(1) SSTTAANNDDAARRDDSS The ccmmpp utility is expected to be IEEE Std1003.2 (``POSIX'') compatible. 4.4BSD June 6, 1993 1