4/16/2008: Please see the Read Me First page before creating new pages (and also if you plan to edit any; you can help clean up the site while you improve/expand the content). --OS-9 Al
CMP
From CoCoWiki
CMP
CMP compares 2 files at the byte level. It will display the file offset and the value of the byte from every file when a difference is find.
Syntax: CMP <path1> <path2>
Example:
CMP /do/CMDS/xmode /d1/CMDS/xmode
If the files are identical, it returns
Differences None ... Bytes compared: 00000439 Bytes different: 00000000
If the files are different, the result will be something like
Differences byte #1 #2 ======== == == 00000007 80 81 00000008 66 67 0000004C 70 58 Bytes compared: 00000439 Bytes different: 00000003
