
%!&$"&($
Appendix D
D-21
Compare Binary Files
Syntax
os9cmp [<opts>] <path1> <path2>
Function
os9cmp opens two files and performs a comparison of the binary values of
the corresponding data bytes of the files. If any differences are
encountered, the file offset (address), the hexadecimal value, and the
ASCII character for each byte are displayed.
The comparison ends when an end-of-file is encountered on either file. A
summary of the number of bytes compared and the number of differences
found is displayed.
Options
Option Description
,
%#* & "#&"!% '!&"! ! " ! %*!&) " "% #
,!' %%! !' " "$* "$ "% # '% "% # '%% "$* %+
* '&
,% !& " %&"# & " #$%"! (! & $%& % & "'$% ! #$!& !
$$"$ %%
Examples
The following command uses an 8K buffer to compare FILE1 with FILE2.
C>os9cmp file1 file2 -b=8k
Differences
(hex) (ascii)
byte #1 #2 #1 #2
======== == == == ==
00000019 72 6e r n
0000001a 73 61 s a
0000001b 74 6c t l
Bytes compared: 0000002f
Bytes different: 00000003
file1 is longer
The following command line compares FILE1 with itself.
C>os9cmp file1 file1
Bytes compared: 0000002f
Bytes different: 00000000
os9cmp
Comentarios a estos manuales