Examples of comparing files with the sccsdiff command

To compare two versions of the same SCCS file:

   /usr/sccs/sccsdiff -r1.3 -r1.5 s.foo.c
   SCCS/s.foo.c: 1.3 vs. 1.5
   21c21
   <  static char exname[] = "Template Xternals";
   ---
   >  static char exname[] = "Template XTernals";

This displays a line by line difference between versions 1.3 and 1.5 of the SCCS file s.foo.c which is in the current directory.

The two versions of this file differ at line 21, where the variable name has been changed from Xternals to XTernals.


To compare two versions of two or more SCCS files:

   /usr/sccs/sccsdiff -r1.2 -r1.3 s.part[1-3].c

This displays a line by line difference between versions1.2 and 1.3 of the SCCS files s.part1.c through s.part3.c which are in the current directory.


[Home] [Search] [Index] This site maintained by webmaster@cs.auckland.ac.nz