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 above command line compares an old version of a file (
a new version (
) and creates a third file,
the contents of
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:
Awould simplify the amount of typing you need to do. You can save disk space by using a version control utility such as .