CMP(1) UNIX Programmer's Manual CMP(1) NNAAMMEE cmp - compare two files SSYYNNOOPPSSIISS ccmmpp [ --ll ] [ --ss ] file1 file2 [ skip1 ] [ skip2 ] DDEESSCCRRIIPPTTIIOONN The two files are compared. (If _f_i_l_e_1 is `-', the standard input is used.) With no options, _c_m_p makes no comment if the files are the same; if they differ, it reports the byte and line number at which the difference occurred, or, that one file is an initial subsequence of the other. _S_k_i_p_1 and _s_k_i_p_2 are initial byte offsets into _f_i_l_e_1 and _f_i_l_e_2 respec- tively, and may be either octal or decimal; a leading ``0'' denotes octal. Options: --ss Print nothing for differing files; set exit codes only. --ll Print the byte number (in decimal) and the differing bytes (in octal) for all differences between the two files. SSEEEE AALLSSOO diff(1), comm(1) DDIIAAGGNNOOSSTTIICCSS Exit code 0 is returned for identical files, 1 for different files, and 2 for an inaccessible or missing argument, or a system error. Printed 7/9/88 November 18, 1987 1