28.15 Show Changes in a troff File with diffmk
Whenever you produce multiple drafts of a document for review,
"change marks" in the newer draft are useful for showing where additions and
deletions have occurred.
The
troff
(
43.13
)
request
%
The above command line compares an old version of a file (
version.1
) to
a new version (
version.2
) and creates a third file,
marked_file
.
marked_file
consists of
the contents of
version.2
plus There are times when you'll want the diffmk command to run on many files at once. For example, suppose you have a project directory containing eight chapter files from a first draft:
% Before making second-draft revisions, you copy the chapter files into a directory named chapters.new :
% Copying the files allows you to edit new versions while preserving the original files in the old directory. After you've edited the files in the new directory, you want to run diffmk on all of them. In the new directory, you would want to type:
% A shell loop ( 9.11 , 9.12 ) would simplify the amount of typing you need to do. You can save disk space by using a version control utility such as SCCS or RCS ( 20.12 ) . - |
|