DIFF3(1) | User Commands | DIFF3(1) |
diff3 - 3-way differential file comparison
diff3 [-exEX3] filename1 filename2 filename3
diff3 compares three versions of a file. It publishes disagreeing ranges of text flagged with the following codes:
====
====1
====2
====3
The type of change suffered in converting a given range of a given file to some other is indicated in one of the following ways:
f : n1 a
f : n1 , n2 c
The original contents of the range follows immediately after a c indication. When the contents of two files are identical, the contents of the lower-numbered file is suppressed.
The following command applies the resulting script to filename1.
(cat script; echo a´1,$pa´) | ed − filename1
The following options are supported:
-e
Text lines that consist of a single dot (. defeat the -e option.
-E
-x
-X
-3
See largefile(7) for the description of the behavior of diff3 when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
/tmp/d3*
/usr/lib/diff3prog
The following exit values are returned:
0
1
>1
Return values do not work the same as diff(1) or other vendor's versions of diff3.
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
CSI | Enabled |
Files longer than 64 Kbytes do not work.
October 22, 2014 | OmniOS |