For each set of differences,
displays a row of equal
With the output of
, it is easy to keep track of which file
is which; however, the prescription given is a little harder to
To bring these files into agreement, the first range of text
The diff3 command also has a -e option for creating an editing script for ed . It doesn't work quite the way you might think. Basically, it creates a script for building the first file from the second and third files.
If you reverse the second and third files, a different script is produced:
As you might guess, this is basically the same output as doing
on the first and third files.
(The only difference in the output is the result of a
rather errant inconsistency between
The System V version of
script that ends
with the commands that save the edited version of the file.
, and both versions of
, require that you
- from UNIX Text Processing , Hayden Books, 1987, Chapter 11