Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Uživatelský manuál Strana 299

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 312
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 298
%!&$"&($
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
Zobrazit stránku 298
1 2 ... 294 295 296 297 298 299 300 301 302 303 304 ... 311 312

Komentáře k této Příručce

Žádné komentáře