Comparing files under SCCS control: sccsdiff

You can compare any two versions of a file that is under the control of Source Code Control System with the sccsdiff command:

   /usr/sccs/sccsdiff -rversion -rversion s.filename

Using this command produces a line by line difference between the two versions of the file. Results are shown in the same format as that produced by the diff command.

Examples

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.