A useful program for reviewing changes between drafts of a document.
compares two versions of a file (
and creates a third file (
that contains troff "change mark" requests.
is formatted with nroff or troff,
the differences between the two files will be marked in the margin
to mark changed lines and a
to mark deleted lines.
Note that change marks are produced even if the changes
are inconsequential (e.g., extra blanks, different input line lengths).
on multiple files, it's convenient to set up
directories in which to keep the old and new versions of your files,
and to create a directory in which to store the marked files:
mkdir OLD NEW CHANGED
Move your old files to
and your new files to
Then use this rudimentary Bourne shell script:
echo "Running diffmk on $file ..."
diffmk ../OLD/$file $file ../CHANGED/$file
You must run the script in the directory of new files: