MPE/iX Shell and Utilities Reference Manual, Vol 1

diff3(1) MPE/iX Shell and Utilities diff3(1)
NAME
diff3 — compare three text files
SYNOPSIS
diff3 [–EeHhXx3] file1 file2 file3 [mark1[mark3]]
DESCRIPTION
The diff3 command compares three versions of a text file found in file1, file2, and file3 on a
line by line basis using the diff(1) command.
diff3 marks ranges of disagreeing text lines with one of the following headers:
====1 only file1 is different.
====2 only file2 is different.
====3 only file3 is different.
==== there are differences in all three files.
After the header, label lines of either of the two following forms may appear to show what dif-
ferences apply to which file:
f:m,nc
f:na
The label f says which of the three files is being described; it is 1, 2, or 3. The first label form
shows a change in file f from lines m to n inclusive, with the actual text following the label
line. The second form indicates that the following text is appended after line n of file f.
Options
All of the following options tell diff3 to produce an editing script instead of the output
described earlier. All scripts consist of commands for the line-oriented text editor ed(1),
which can then be run on this script to make the indicated changes to file1.
–E is similar to –e, except that it also checks for overlapping ranges of lines in the
changes. diff3 highlights these ranges in the output.
–e produces an editor script of only those changes flagged ==== or ====3.
–H tells diff to use the –H option when called by diff3.
–h tells diff to use the –h option when called by diff3.
–X is similar to –x except that it also checks for overlapping ranges of lines in the
changes. diff3 highlights these ranges in the output.
Commands and Utilities 1-181