PRS(1) HP-UX 5.0 PRS(1) NAME prs - print and summarize an SCCS file SYNOPSIS prs files HP-UX COMPATIBILITY Level: HP-UX/STANDARD Origin: System III DESCRIPTION Prs prints, on the standard output, parts or all of an 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- 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; each line of the standard input is taken to be the name of an file to be processed; non- files and unreadable files are silently ignored. Arguments to prs, which may appear in any order, consist of keyletter arguments, and file names. All the described keyletter arguments apply independently to each named file: -d[dataspec] Used to specify the output data specification. The dataspec is a string consisting of file data keywords (see Data Keywords) interspersed with optional user supplied text. -r[SID] Used to specify the SCCS IDentification () string of a delta for which information is desired. If no is specified, the of the most recently created delta is assumed. If an SID is specified, it must agree exactly with an SID in the file (i.e. the SID structure used by get(1) does not work here). -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. -a Requests printing of information for both removed, i.e., delta type = R, (see rmdel(1)) and existing, i.e., delta type = D, deltas. If the -a keyletter is not specified, information for existing deltas only is provided. Data Keywords Data keywords specify which parts of an file are to be retrieved and output. All parts of an 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 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. TABLE 1. SCCS Files Data Keywords KeywordData Item File Section Value Format :Dt: Delta information Delta Table See below* S :DL: " :Li:/:Ld:/:Lu: S 7 Delta line statistics :Li: " nnnnn S 7 Lines inserted by Delta :Ld: " nnnnn S 7 Lines deleted by Delta :Lu: " nnnnn S 7 Lines unchanged by Delta :DT: Delta type " D~or~R S :I: " :R:.:L:.:B:.:S: S 7 SCCS ID string (SID) :R: Release number " nnnn S :L: Level number " nnnn S :B: Branch number " nnnn S :S: Sequence number " nnnn S :D: " :Dy:/:Dm:/:Dd: S 7 Date Delta created :Dy: " nn S 7 Year Delta created :Dm: " nn S 7 Month Delta created :Dd: " nn S 7 Day Delta created :T: " :Th:::Tm:::Ts: S 7 Time Delta created :Th: " nn S 7 Hour Delta created :Tm: " nn S 7 Minutes Delta created :Ts: " nn S 7 Seconds Delta created :P: " logname S 7 Programmer who created Delta :DS: " nnnn S 7 Delta sequence number :DP: " nnnn S 7 Predecessor Delta seq-no. :DI: " :Dn:/:Dx:/:Dg: S 7 Seq-no. of deltas incl., 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 " text M :C: Comments for delta " text M :UN: User names User Names text M :FL: Flag list Flags text M :Y: Module type flag " text S :MF: " yes~or~no S 7 MR validation flag :MP: " text S 7 MR validation pgm name :KF: " yes~or~no S 7 Keyword error/warning flag :BF: Branch flag " yes~or~no S :J: Joint edit flag " yes~or~no S :LK: Locked releases " :R:... S :Q: User defined keyword " text S :M: Module name " text S :FB: Floor boundary " :R: S :CB: Ceiling boundary " :R: S :Ds: Default SID " :I: S :ND: Null delta flag " yes~or~no S :FD: Comments text M 7 File descriptive text :BD: Body Body text M :GB: Gotten body " text M :W: N/A :Z::M:\t:I: S 7 A form of what(1) string :A: N/A :Z::Y:~:M:~:I::Z: S 7 A form of what(1) string :Z: N/A @(#) S 7 what(1) string delimiter :F: SCCS file name N/A text S :PN: SCCS file path name N/A text S 9 * :Dt:~=~:DT:~:I:~:D:~:T:~:P:~:DS:~:DP: User supplied text is any text other than recognized data keywords. Escapes may be used as follows: tab \t new-line \n colon \: backspace \b carriage-return \r form feed \f backslash \\ single quote \' The default dataspec is: :Dt:\t:DL:\n:MRs:\n:MR:COMMENTS:\n:C: If no option letters (or only -a) are given, prs prints the file name, using the default dataspec, and the -e option; thus, information on all deltas is produced. 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 9 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 (when no -d keyletter is given): 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. FILES /tmp/pr????? {temp files exist only while psr is active.} SEE ALSO admin(1), delta(1), get(1), help(1), sccsfile(5). SCCS User's Guide in HP-UX Concepts and Tutorials. DIAGNOSTICS Use help(1) for explanations.