home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


rcsdiff

rcsdiff [options ] [diff_options ] files

Compare revisions via diff . Specify revisions using -r as follows:

# of Revisions Comparison Made
None Working file against latest revision.
One Working file against specified revision.
Two One revision against the other.

rcsdiff accepts the standard options -q , -V , -V n , -T , -x , and -z , as well as diff_options , which can be any valid diff option. rcsdiff exits with a status of 0 (no differences), 1 (some differences), or 2 (unknown problem). The -c option to diff can be very useful with rcsdiff .

rcsdiff prints "retrieving revision ..." messages to standard error, as well as a line of equals signs for separating multiple files. It is often useful to redirect standard error and standard output to the same file.

Options

-k c

When comparing revisions, expand keywords using style c . (See co for values of c .)

-r R1

Use revision R1 in the comparison.

-r R2

Use revision R2 in the comparison. (-r R1 must also be specified.)

Examples

Compare the current working file against the last checked-in version:

rcsdiff -c ch19.sgm 2>&1 | more

Compare the current working file against the very first version:

rcsdiff -c -r1.1 ch19.sgm 2>&1 | more

Compare two earlier versions of a file against each other:

rcsdiff -c -r1.3 -r1.4 ch19.sgm 2>&1 | more


Previous: Reference: rcsclean UNIX in a Nutshell: System V Edition Next: Reference: rcsfreeze
Reference: rcsclean Book Index Reference: rcsfreeze

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System