diffmk(1M) diffmk(1M)
NAME
diffmk - mark differences between versions of an input file
SYNOPSIS
diffmk oldfile newfile markedfile
DESCRIPTION
diffmk compares two versions of a file and creates a third file that
includes "change mark" requests (.mc) for nroff(1M) or troff(1M).
oldfile and newfile are the old and new versions of the file. diffmk
generates markedfile, which, contains the text from newfile with
"change mark" requests (.mc) inserted where newfile differs from
oldfile. When markedfile is formatted, changed or inserted text is
shown by a | at the right margin of each line. The position of deleted
text is shown by a single asterisk: *.
diffmk can also be used in conjunction with the proper nroff/troff
requests to produce program listings with marked changes. In the fol-
lowing command line:
diffmk old.c new.c marked.c ; nroff reqs marked.c | pr
the file reqs contains the requests
.pl 1
.ll 77
.nf
.eo
which eliminate page breaks (.pl), adjust the line length (.ll), set
no-fill mode and turn off hyphenation (.nf), and ignore escape charac-
ters (.eo), respectively.
If the characters | and * are inappropriate, you might run markedfile
through sed(1) to globally change them.
NOTES
Aesthetic considerations may dictate manual adjustment of some output.
File differences involving only formatting requests may produce
undesirable output, i.e. replacing .sp by .sp 2 will produce a "change
mark" on the preceding or following line of output.
The command /usr/bin/diffmk is identical to the UCB version
/usr/ucb/diffmk.
SEE ALSO
diff(1), nroff(1M), troff(1M).
Page 1 Reliant UNIX 5.44 Printed 11/98