1DIFF3(1)                    General Commands Manual                   DIFF3(1)
2
3
4

NAME

6       diff3 - 3-way differential file comparison
7

SYNOPSIS

9       diff3 [ -ex3 ] file1 file2 file3
10

DESCRIPTION

12       Diff3  compares  three  versions  of  a file, and publishes disagreeing
13       ranges of text flagged with these codes:
14
15       ====            all three files differ
16
17       ====1           file1 is different
18
19       ====2           file2 is different
20
21       ====3           file3 is different
22
23       The type of change suffered in converting a given range of a given file
24       to some other is indicated in one of these ways:
25
26       f : n1 a        Text  is to be appended after line number n1 in file f,
27                       where f = 1, 2, or 3.
28
29       f : n1 , n2 c   Text is to be changed in the range line n1 to line  n2.
30                       If n1 = n2, the range may be abbreviated to n1.
31
32       The  original contents of the range follows immediately after a c indi‐
33       cation.  When the contents of two files are identical, the contents  of
34       the lower-numbered file is suppressed.
35
36       Under  the  -e  option, diff3 publishes a script for the editor ed that
37       will incorporate into file1 all changes between file2 and  file3,  i.e.
38       the  changes  that normally would be flagged ==== and ====3.  Option -x
39       (-3) produces  a  script  to  incorporate  only  changes  flagged  ====
40       (====3).   The  following  command  will  apply the resulting script to
41       `file1'.
42
43                (cat script; echo ´1,$p´) ⎪ ed - file1
44

FILES

46       /tmp/d3?????
47       /usr/lib/diff3
48

SEE ALSO

50       diff(1)
51

BUGS

53       Text lines that consist of a single `.' will defeat -e.
54       Files longer than 64K bytes won't work.
55
56
57
58                                                                      DIFF3(1)
Impressum