MediaWiki:Sitenotice:
2024-03-02: The wiki ran out of disk space, so things were not working. This has been resolved by adding another 5GB of quota ;-) Thanks to Tim Lindner for reporting the issues. 2020-05-17: If a page gives you an error about some revision not being found, just EDIT the page and the old page should appear in the editor. If it does, just SAVE that and the page should be restored. OS-9 Al (talk) 12:22, 17 May 2020 (CDT)

CMP: Difference between revisions

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigation Jump to search
No edit summary
 
(Category)
 
Line 22: Line 22:
  Bytes compared:  00000439
  Bytes compared:  00000439
  Bytes different: 00000003
  Bytes different: 00000003
[[Category:OS-9]]

Latest revision as of 20:53, 10 September 2015

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