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

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 16.3 Pic Chapter 17 Next: 17.2 Basic Operation

17. The SCCS Utility

This section presents the following topics:

  • Overview of commands

  • Basic operation

  • Identification keywords

  • Data keywords

  • Alphabetical summary of commands

  • sccs and pseudo-commands

Note: SCCS users who are more familiar with RCS may benefit from the "Conversion Guide for SCCS Users" in Section 18. This lists SCCS commands and their RCS equivalents.

The Source Code Control System (SCCS) lets you keep track of each revision of a document, avoiding the confusion that often arises from having several versions of one file on line. SCCS is particularly useful when programs are enhanced but the original version is still needed.

All changes to a file are stored in a file named s. file , which is called an SCCS file. Each time a file is "entered" into SCCS, SCCS notes which lines have been changed or deleted since the most recent version. From that information, SCCS can regenerate the file on demand. Each set of changes depends on all previous sets of changes.

Each set of changes is called a delta and is assigned an S CCS id entification string ( sid ). The sid consists of either two components, release and level numbers (in the form a . b ), or of four components: the release, level, branch, and sequence numbers (in the form a . b . c . d ). The branches and sequences are for situations when two on-running versions of the same file are recorded in SCCS. For example, delta refers to release 3, level 2, branch 1, sequence 1.

17.1 Overview of Commands

SCCS commands fall into several categories:

17.1.1 Basic Set Up and Editing


Create new SCCS files and change their parameters.


Retrieve versions of SCCS files.


Create a new version of an SCCS file (i.e., append a new delta ).


Cancel a get operation; don't create a new delta.

17.1.2 Fixing Deltas


Change the comment associated with a delta.


Combine consecutive deltas into a single delta.


Remove an accidental delta from an SCCS file.

17.1.3 Information


Print a command synopsis or clarify diagnostic messages.


Print portions of SCCS files in a specified format.


Show editing activity on SCCS files.


Search for all occurrences of the pattern get substitutes for %Z% , and print out the following text.

17.1.4 Comparing Files


Show the differences between any two SCCS files.


Validate an SCCS file.

Previous: 16.3 Pic UNIX in a Nutshell: System V Edition Next: 17.2 Basic Operation
16.3 Pic Book Index 17.2 Basic Operation

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