|
|
1.1 ! root 1: .TH CMP 1 "18 January 1983" ! 2: .SH NAME ! 3: cmp \- compare two files ! 4: .SH SYNOPSIS ! 5: .B cmp ! 6: [ ! 7: .B \-l ! 8: ] [ ! 9: .B \-s ! 10: ] ! 11: file1 file2 ! 12: .SH DESCRIPTION ! 13: The two files are ! 14: compared. ! 15: (If ! 16: .I file1 ! 17: is `\-', ! 18: the standard input is used.) ! 19: Under default options, ! 20: .I cmp ! 21: makes no comment if the files are the same; ! 22: if they differ, it announces the byte and line number ! 23: at which the difference occurred. ! 24: If one file is an initial subsequence ! 25: of the other, that fact is noted. ! 26: .PP ! 27: Options: ! 28: .TP 6 ! 29: .B \-l ! 30: Print the byte number (decimal) and the ! 31: differing bytes (octal) for each difference. ! 32: .TP 6 ! 33: .B \-s ! 34: Print nothing for differing files; ! 35: return codes only. ! 36: .dt ! 37: .SH "SEE ALSO" ! 38: diff(1), comm(1) ! 39: .SH DIAGNOSTICS ! 40: Exit code 0 is returned for identical ! 41: files, 1 for different files, and 2 for an ! 42: inaccessible or missing argument.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.