|rcsrevs||The rcsrevs script tells you all the revision numbers that are stored in an file. For instance:|
rcsrevs myprog1.3 1.2 1.1 188.8.131.52
What good is that? Here are two examples.
uses rcsrevs when it's searching all revisions of an RCS file. If you want to print all revisions, run a program across all revisions to do some kind of check, and so on, rcsrevs can give you the revision numbers to use in a . The shell loop below gets all the revision numbers and stores them in the revnum shell variable one by one; it runs to send each revision to the command for formatting with a custom header; the output of the commands in the loop goes to the printer.
You'd like to compare the two most recent revisions of several RCS files
to see what the last change was.
But the revision numbers in each file are different.
(One file's latest revision might be 2.4, another file could be at 1.7,
then run rcsdiff to do the comparisons and
them to bigboss: