United States-English |
|
|
HP-UX Reference > Pprs(1)HP-UX 11i Version 3: February 2007 |
|
NAMEprs — print and summarize an SCCS file DESCRIPTIONThe prs command prints, on the standard output, parts or all of an SCCS file (see sccsfile(4)) 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; each line of the standard input is taken to be the name of an SCCS file or directory to be processed; non-SCCS files and unreadable files are silently ignored. A -- on the command line implies that all following arguments are file/directory names. Arguments to prs, which can appear in any order, consist of options and file names. OptionsAll of the described options apply independently to each named file:
If no option letters (or only -a) are given, prs prints the file name using the default dataspec and the -e option. This produces information on all deltas. Data KeywordsData keywords specify which parts of an SCCS file are to be retrieved and output. All parts of an SCCS file (see sccsfile(4)) have an associated data keyword. There is no limit on the number of times a data keyword can 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. Escapes can be used as follows:
The default dataspec is:
* :Dt: = :DT: :I: :D: :T: :P: :DS: :DP: 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. EXTERNAL INFLUENCESEnvironment VariablesLC_CTYPE determines the interpretation of dataspec as single and/or multi-byte characters. LC_MESSAGES determines the language in which messages are displayed. If LC_CTYPE or LC_MESSAGES is not specified in the environment or is set to the empty string, the value of LANG is used as a default for each unspecified or empty variable. If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, prs behaves as if all internationalization variables are set to "C". See environ(5). EXAMPLESThe entry 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 The entry 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 specifications for selecting or printing are 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. The only option argument allowed to be used with the special case is the -a option. |
Printable version | ||
|