01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CMP ( l ) CMP ( l )<br />

NAME cmp - compare two files<br />

SYNOPSIS<br />

cmp [ -1 I [ -s I filel file2<br />

DESCRIPTION<br />

The two files are compared. (If file1 is -, the standard input is<br />

used.) Under default options, cmp makes no comment if the files<br />

are the same; if they differ, it announces the byte and line number<br />

at which the difference occurred. If one file is an initial subsequence<br />

of the other, that fact is noted.<br />

Options:<br />

-1 Print the byte number (decimal) and the differing bytes<br />

(octal) for each difference.<br />

-s Print nothing for differing files; return codes only.<br />

SEE ALSO<br />

comm(l), diff(l).<br />

DIAGNOSTICS<br />

Exit code 0 is returned for identical files, 1 for different files, and 2<br />

for an inaccessible or missing argument.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!