|
NAMEcompare - fast binary comparison of two filesSYNOPSIScompare [ options ] file1 file2DESCRIPTIONCompare examines one file and standard in, or two files on a byte by byte basis, and prints the file position of the first difference it finds, first in decimal and then in hexadecimal, followed by the differing byte content in hexadecimal and as quoted character.Compare is similar to the UNIX utility cmp(1) but faster. The lines count from 1, the byte offset counts from 0. This is a deviation from the UNIX cmp(1) utility, which counts byte offsets beginning from 1. OPTIONSNote all options can be abbreviated to their first letter.
NOTESnumbers in the options begin=#, begin1=#, begin2=#, and count=# are assumed to be bytes. However typing the character 'b' after the number means blocks (512 bytes). (E.g. begin=6b count=1000b). Other suffixes may used as for the bs= option in sdd(1) 'k' means 1024 bytes, 'm' means 1024 KBytes.BUGSAUTHORcompare(1) has been initially written by Joerg Schilling in 1985 and is still maintained by Joerg Schilling.Joerg Schilling D-13353 Berlin Germany Mail bugs and suggestions to: joerg@schily.net
Visit the GSP FreeBSD Man Page Interface. |