1diffmk(1) User Commands diffmk(1)
2
3
4
6 diffmk - mark differences between versions of a troff input file
7
9 diffmk oldfile newfile markedfile
10
11
13 diffmk compares two versions of a file and creates a third version that
14 includes "change mark" (.mc) commands for nroff(1) and troff(1). old‐
15 file and newfile are the old and new versions of the file. diffmk gen‐
16 erates markedfile, which, contains the text from newfile with troff(1)
17 "change mark" requests (.mc) inserted where newfile differs from old‐
18 file. When markedfile is formatted, changed or inserted text is shown
19 by | at the right margin of each line. The position of deleted text is
20 shown by a single *.
21
23 See largefile(5) for the description of the behavior of diffmk when
24 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
25
27 Example 1 An example of the diffmk command.
28
29
30 diffmk can also be used in conjunction with the proper troff requests
31 to produce program listings with marked changes. In the following com‐
32 mand line:
33
34
35 example% diffmk old.c new.c marked.c ; nroff reqs marked.c | pr
36
37
38
39
40 the file reqs contains the following troff requests:
41
42
43 .pl 1
44 .ll 77
45 .nf
46 .eo
47 .nh
48
49
50
51
52 which eliminate page breaks, adjust the line length, set no-fill mode,
53 ignore escape characters, and turn off hyphenation, respectively.
54
55
56
57 If the characters | and * are inappropriate, you might run markedfile
58 through sed(1) to globally change them.
59
60
62 See attributes(5) for descriptions of the following attributes:
63
64
65
66
67 ┌─────────────────────────────┬─────────────────────────────┐
68 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
69 ├─────────────────────────────┼─────────────────────────────┤
70 │Availability │SUNWdoc │
71 └─────────────────────────────┴─────────────────────────────┘
72
74 diff(1), nroff(1), sed(1), troff(1), attributes(5), largefile(5)
75
77 Aesthetic considerations may dictate manual adjustment of some output.
78 File differences involving only formatting requests may produce unde‐
79 sirable output, that is, replacing .sp by .sp 2 will produce a "change
80 mark" on the preceding or following line of output.
81
82
83
84SunOS 5.11 14 Sep 1992 diffmk(1)