PRS(1SCCS) COMMAND REFERENCE PRS(1SCCS)
NAME
prs - print an SCCS file
SYNOPSIS
prs [-a] [-d[dataspec]] [-e] [-l] [-r[SID]] files
DESCRIPTION
Prs ^ prints, on the standard output, parts or all of an
SCCS file (see sccsfile(5sccs)) in a user supplied format.
If a directory is named, prs ^ behaves as though each file
in the directory except non-SCCS files, were specified as a
named file. If name of - is given, the standard input is
read; each line of the standard input is taken to be the
name of an SCCS file or directory to be processed.
Data keywords specify which parts of an SCCS file are to be
retrieved and output. All parts of an SCCS file (see
sccsfile(5sccs)) 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.
OPTIONS
-a Requests printing of information for both removed, i.e.,
delta type = R, (see rmdel(1sccs)) and existing, i.e.,
delta type = D, deltas. If the -a keyletter is not
specified, information for existing deltas only is
provided.
-ddataspec
Used to specify the output data specification. The
dataspec is a string consisting of SCCS file data
keywords (see prskeywords(5sccs)) interspersed with
optional user supplied text.
-e Requests information for all deltas created earlier than
and including the delta designated via the -r keyletter.
-l Requests information for all deltas created later than
and including the delta designated via the -r keyletter.
Printed 10/17/86 1
PRS(1SCCS) COMMAND REFERENCE PRS(1SCCS)
-rSID
Used to specify the SCCS IDentification (SID) string of
a delta for which information is desired. If no SID is
specified, the of the most recently created delta is
assumed.
EXAMPLES
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
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:
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
Printed 10/17/86 2
PRS(1SCCS) COMMAND REFERENCE PRS(1SCCS)
for each delta table entry of the ``D'' type. The only
keyletter argument allowed to be used with the special case
is the -a keyletter.
FILES
/tmp/pr????? Temporary file for multi-column
output
DIAGNOSTICS
Use sccshelp(1sccs) for explanations.
CAVEATS
Non-SCCS files and unreadable files are silently ignored.
SEE ALSO
admin(1sccs), delta(1sccs), get(1sccs), prskeywords(5sccs),
rmdel(1sccs), sccshelp(1sccs), sccsfile(5sccs).
Printed 10/17/86 3
%%index%%
na:72,60;
sy:132,219;
de:351,1583;
op:1934,1031;3109,247;
ex:3356,936;4436,187;
fi:4623,146;
di:4769,138;
ca:4907,114;
se:5021,364;
%%index%%000000000165