MAINSAIL Utilities User's Guide, Chapter 35

previous   next   top   contents   index   framed top   this page unframed


35. WRDCOM, Data File Comparer

Command line syntax: wrdcom {file1 {file2}}*

WRDCOM compares pairs of data files. If the file names are provided on the command line, WRDCOM compares the specified pairs of files. If the last file2 is omitted, WRDCOM prompts for it. If no files are specified on the command line, WRDCOM prompts for two file names.

Successive BITS values from each file are read and if different, the values and file position (0-origin) are written to logFile. If the two files are identical, no output is generated.

Example 35–1 shows how to use WRDCOM. The BITS values at offsets 12, 16, 20, and 24 of the files file1 and file2 are different.

Example 35–1. WRDCOM Example
MAINSAIL (R) Version 16.20.<release> (? for help)
Revision: <date>
Copyright (c) 1984-1998 by XIDAK, Inc., Point Arena,
 California, USA.

*
wrdcom<eol>
File number 1 (just <eolto stop): file1<eol>
File number 2: file2<eol>
12 ('
HC):              'H312E       'H322E
16 ('
H10):             'HA48        'HA57
20 ('
H14):             'H2077       'H206F
24 ('
H18):             'H6F6E       'H6E65
Found 4 differences.
File number 1 (just <eolto stop): <eol>
*


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Utilities User's Guide, Chapter 35