PRS(1) — USER COMMANDS
NAME
prs − print an SCCS file
SYNOPSIS
/usr/sccs/prs [ −d[dataspec] ] [ −r[SID] ] [ −e ] [ −l ] [ −a ] filename ...
DESCRIPTION
prs prints, on the standard output, parts or all of an SCCS file (see sccsfile(5)) in a user supplied format. If a directory is named, prs behaves as though each file in the directory were specified as a named file, except that non-SCCS files (last component of the path name does not begin with s.), and unreadable files are silently ignored. If a name of − is given, the standard input is read, in which case each line is taken to be the name of an SCCS file or directory to be processed; non-SCCS files and unreadable files are silently ignored.
OPTIONS
Options apply independently to each named file.
−d[dataspec]
Specifies the output data specification. The dataspec is a string consisting of SCCS file data keywords (see DATA KEYWORDS) interspersed with optional user supplied text.
−r[SID]
Specifies the SCCS IDentification SID string of a delta for which information is desired. If no SID is specified, the SID of the most recently created delta is assumed.
−eRequests information for all deltas created earlier than and including the delta designated via the −r option.
−lRequests information for all deltas created later than and including the delta designated via the −r option.
−aRequests printing of information for both removed, that is, delta type = R, (see rmdel(1)) and existing, that is, delta type = D, deltas. If the −a option is not specified, information for existing deltas only is provided.
In the absence of the −d options, prs displays a default set of information consisting of: delta-type, release number and level number, date and time last changed, user-name of the person who changed the file, lines inserted, changed, and unchanged, the MR numbers, and the comments.
DATA KEYWORDS
Data keywords specify which parts of an SCCS file are to be retrieved and output. All parts of an SCCS file (see sccsfile(5)) have an associated data keyword. There is no limit on the number of times a data keyword may appear in a dataspec.
The information printed by prs consists of: 1) the user supplied text; and 2) appropriate values (extracted from the SCCS file) substituted for the recognized data keywords in the order of appearance in the dataspec. The format of a data keyword value is either Simple (S), in which keyword substitution is direct, or Multi-line (M), in which keyword substitution is followed by a carriage return.
User supplied text is any text other than recognized data keywords. A tab is specified by \t and carriage return/new-line is specified by \n.
TABLE 1. SCCS Files Data Keywords
KeywordData ItemFile SectionValueFormat
:Dt:Delta informationDelta TableSee below∗S
:DL:Delta line statistics":Li:/:Ld:/:Lu:S
:Li:Lines inserted by Delta"nnnnnS
:Ld:Lines deleted by Delta"nnnnnS
:Lu:Lines unchanged by Delta"nnnnnS
:DT:Delta type"D or RS
:I:SCCS ID string (SID)":R:.:L:.:B:.:S:S
:R:Release number"nnnnS
:L:Level number"nnnnS
:B:Branch number"nnnnS
:S:Sequence number"nnnnS
:D:Date Delta created":Dy:/:Dm:/:Dd:S
:Dy:Year Delta created"nnS
:Dm:Month Delta created"nnS
:Dd:Day Delta created"nnS
:T:Time Delta created":Th:::Tm:::Ts:S
:Th:Hour Delta created"nnS
:Tm:Minutes Delta created"nnS
:Ts:Seconds Delta created"nnS
:P:Programmer who created Delta"lognameS
:DS:Delta sequence number"nnnnS
:DP:Predecessor Delta seq-no. "nnnnS
:DI:Seq-no. of deltas incl.,":Dn:/:Dx:/:Dg:S
excl., ignored
:Dn:Deltas included (seq #)":DS: :DS:...S
:Dx:Deltas excluded (seq #)":DS: :DS:...S
:Dg:Deltas ignored (seq #)":DS: :DS:...S
:MR:MR numbers for delta"textM
:C:Comments for delta"textM
:UN:User namesUser NamestextM
:FL:Flag listFlagstextM
:Y:Module type flag"textS
:MF:MR validation flag"yes or noS
:MP:MR validation pgm name"textS
:KF:Keyword error/warning flag"yes or noS
:BF:Branch flag"yes or noS
:J:Joint edit flag"yes or noS
:LK:Locked releases":R:...S
:Q:User defined keyword"textS
:M:Module name"textS
:FB:Floor boundary":R:S
:CB:Ceiling boundary":R:S
:Ds:Default SID":I:S
:ND:Null delta flag"yes or noS
:FD:File descriptive textCommentstextM
:BD:BodyBodytextM
:GB:Gotten body"textM
:W:A form of what stringN/A:Z::M:\t:I:S
:A:A form of what stringN/A:Z::Y: :M: :I::Z:S
:Z:what string delimiterN/A@(#)S
:F:SCCS file nameN/AtextS
:PN:SCCS file path nameN/AtextS
∗ :Dt: = :DT: :I: :D: :T: :P: :DS: :DP:
EXAMPLES
/usr/sccs/prs −d"Users and/or user IDs for :F: are:\n:UN:" s.file
may produce on the standard output:
Users and/or user IDs for s.file are:
xyz
131
abc
/usr/sccs/prs −d"Newest delta for pgm :M:: :I: Created :D: By :P:" −r s.file
may produce on the standard output:
Newest delta for pgm main.c: 3.7 Created 77/12/1 By cas
As a special case:
/usr/sccs/prs s.file
may produce on the standard output:
D 1.1 77/12/1 00:00:00 cas 1 000000/00000/00000
MRs:
bl78-12345
bl79-54321
COMMENTS:
this is the comment line for s.file initial delta
for each delta table entry of the “D” type. The only option argument allowed to be used with the special case is the −a option.
FILES
/tmp/pr?????
SEE ALSO
sccs(1), admin(1), delta(1), get(1), help(1), sccsfile(5)
Programming Utilities for the Sun Workstation.
DIAGNOSTICS
Use help for explanations.
Sun Release 3.2 — Last change: 18 February 1986