EasyManua.ls Logo

Commodore PC 20 - Page 311

Commodore PC 20
494 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
[
[.
[-
[~
[~
File Comparison
Utility
(FC)
1731
FC
would
take reportl.txt in
the
\user\pete
directory
of
disk
drive C
and
compare it
with
the
corresponding reportl.
txt
in
the
\user\betty
directory. It
would
then
compare Pete's report2.txt
against Betty's, and, finally,
compare
their report3.txt files.
Since in this example
no
drive was specified for
the
second
set
of
files,
FC
would
have assumed that
the
\ user \ betty directory was
on
the
disk in
the
default drive.
Fe
Switches
There
are nine switches that
you
can
use
with
the
File Com-
parisoli utility. They are described in
the
following paragraphs.
The
la
switch abbreviates
the
output
of
an
ASCII
comparison.
Instead
of
displaying all
of
the
lines that are different,
only
the
lines that begin and
end
each
set
of
differences
are
displayed.
The intermediate lines are
represented
by
ellipses (
...
).
The
!b
switch forces a binary comparison
of
both
files.
The
two
files are compared byte by byte,
with
no
attempt
to
resynchronize
after a mismatch. The mismatches
are
printed
as follows:
xxxxxxxx
Y.Y
zz
(where
xxxxxxxx
is
the
relative address
of
the
pair
of
bytes from
the
beginning
of
the file). Addresses start
at
00000000;
y.y
and
zz
are
the
mismatched bytes from
filel
and file2, respectively.
Hone
of
the
files contains less data than
the
other, a message is dis-
played. For example,
iffilel.txt
ends
before file2. txt,
FC
displays:
fc:
file2.txt
longer
than
file1.txt
This switch
is
the
default
when
you compare .exe, .com, .sys, .obj,
.lib,
or
.
bin
files.
The
Ie switch causes
the
matching process
to
ignore
the
case
of
letters.
All
letters in
the
files are considered uppercase letters. For
example,
the
following
two
lines
would
be
considered matching:
Much
MORE
data
IS
NOT
FOUND
much
more
data
is
not
found
Using
switches
with
FC

Table of Contents

Related product manuals