|
|
1.1 ! root 1: .TH CMP 1 ! 2: .CT 1 files ! 3: .SH NAME ! 4: cmp \- compare two files ! 5: .SH SYNOPSIS ! 6: .B cmp ! 7: [ ! 8: .B -lsL ! 9: ] ! 10: .I file1 file2 ! 11: [ ! 12: .I offset1 ! 13: [ ! 14: .I offset2 ! 15: ] ! 16: ] ! 17: .SH DESCRIPTION ! 18: The two files are ! 19: compared. ! 20: If the contents differ a diagnostic results, otherwise ! 21: there is no output. ! 22: .PP ! 23: The options are: ! 24: .TP ! 25: .B l ! 26: Print the byte number (decimal) and the ! 27: differing bytes (octal) for each difference. ! 28: .TP ! 29: .B s ! 30: Print nothing for differing files, ! 31: but set the return code. ! 32: .TP ! 33: .B L ! 34: Print the line number of the first differing byte. ! 35: .PP ! 36: If offsets are given, ! 37: comparison starts at the designated byte position ! 38: of the corresponding file. ! 39: Offsets that begin with ! 40: .B 0x ! 41: are hexadecimal; ! 42: with ! 43: .BR 0 , ! 44: octal; with anything else, decimal. ! 45: .SH "SEE ALSO" ! 46: .IR diff (1), ! 47: .IR comm (1) ! 48: .SH DIAGNOSTICS ! 49: .I Cmp ! 50: reports `EOF' and identifies the file if one file is short. ! 51: It reports the number of the first disagreeing byte if contents differ. ! 52: The return code is 0 for identical ! 53: files, 1 for different files, and 2 for an ! 54: inaccessible or missing argument.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.