Chapter 6 / Command Reference
Examples
f c / b t est 1 . s r e t est 2 . s r c
>
t est 3 . s r c
I
ENTER
I
does a binary comparison of the files Test1.src and Test2.src that
are in the current directory, and redirects output to the file
Test3.src that is also in the current directory.
•
•
You can redirect FC-s output to a file by appending )
tar -
ge t
pa
t
hname
to the FC command. For example, to send
the output of the above command to the file Differ.src in
the current directory, type:
f c / b f i 1 e 1 . s r e f
1
1 e 2 . s r c ) d iff e r . s r c
I
ENTER
I
If the number of lines in the internal buffer is smaller than
the number of consecutive, differing lines, FC stops. It
displays:
resynch failed.
Files are too different
Then, it returns to the MS-DOS system prompt.
. I
:.......J
,
1
I
I
\....-.J
I
LJ
J
I
I
:
I
l-.I
fc /4/w/c b;\user\myfile.src
b : \ use r \ my f
1
1 e 1 • s r c
I
ENTER
I
does a line-by-line comparison of B: \ USER \ Myfile.src and
B: \ USER \ Myfile1.src, compressing white spaces and ignoring
case. After FC finds a mismatch, at least four lines in a row
must match for the file to be considered matching.
92
I
i
U
I
~
: I
L.....J
J
J
J
I
I
I
I
L.....J