DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Source code control system (SCCS)

prs command

The prs(CP) command prints all or part of an SCCS file on the standard output. If prs -d is used, the output is in a format called data specification. Data specification is a string of SCCS file data key words (not to be confused with get ID keywords) interspersed with optional user text.

Data keywords are replaced by appropriate values, according to their definitions.

:I:

In this example, I is defined as the data keyword replaced by the SID of a specified delta. Similarly, :F: is the data keyword for the SCCS filename currently being processed, and :C: is the comment line associated with a specified delta. All parts of an SCCS file have an associated data keyword. For a complete list, see prs(CP).

There is no limit to the number of times a data keyword can appear in a data specification. For example:

prs -d":I: this is the top delta for :F: :I:" s.abc

This produces the following output:

   2.1 this is the top delta for s.abc 2.1
Information can be obtained from a single delta by specifying its SID using prs -r. For example:

prs -d":F:: :I: comment line is: :C:" -r1.4 s.abc

This produces the following output:

   s.abc:  1.4 comment line is:THIS IS A COMMENT
If -r is not specified, the value of the SID defaults to the most recently created delta.

In addition, information from a range of deltas may be obtained with -l or -e. Using prs -e substitutes data keywords for the SID designated by means of -r and all deltas created earlier, while prs -l substitutes data keywords for the SID designated by means of -r and all deltas created later. For example:

   prs  -d:I: -r1.4  -e  s.abc
This produces output such as:
   1.4
   1.3
   1.2.1.1
   1.2
   1.1
Another example is:

prs -d:I: -r1.4 -l s.abc

This produces output such as:

   3.3
   3.2
   3.1
   2.2.1.1
   2.2
   2.1
   1.4
Substitution of data keywords for all deltas of the SCCS file may be obtained by specifying both -e and -l.
Next topic: sact command
Previous topic: admin command

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003