*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: prs | Section: 1 | Source: Digital UNIX | File: prs.1.gz
prs(1) General Commands Manual prs(1) NAME prs - Displays key information in a Source Code Control System (SCCS) file SYNOPSIS prs [-a] [-d dataspec] [-r[SID]] file... prs [-e|-l] [-c cutoff] [-d dataspec] file... prs [-e|-l] -r[SID] [-d dataspec] file... STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: prs: XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. OPTIONS Writes information for the specified deltas, whether or not they were removed (see the rmdel(1) reference page). If you do not specify the -a option, prs supplies information only for the specified deltas that were not removed. Specifies a cutoff date and time for the -e and -l options. Specify cutoff in the following form: yym[dd[hhm[ss]]]]] All omitted items default to their maximum values, so specifying -c9002 is the same as specifying -c900229235959. You can sepa- rate the fields with any nonnumeric characters. For example, you can specify: -c90/2/20,9:22:25 or -c"90/2/20 9:22:25" or "-c90/2/20 9:22:25" [DIGITAL] If the year (yy) field is less than 69, prs inter- prets it as being in the twenty-first century, i.e. 20yy. If the year is greater than or equal to 69, prs interprets it as being in the twentieth century, i.e. 19yy. Specifies the data items to be displayed. The dataspec string consists of optional text and SCCS file data keywords. You must enclose all text and spaces in dataspec in "" (double quotes). Requests information for all deltas created earlier than (and including) the delta specified by the -r option. Requests information for all deltas created later than (and including) the delta specified by the -r option. Specifies the SID of a delta for which prs will re- trieve information. If no SID is specified, prs retrieves the information for the SID of the highest numbered delta. If SID is specified, you must not use a space between the -r and the SID. OPERANDS The path name of an existing SCCS file or directory. If you specify a directory in place of file, prs performs the requested actions on all SCCS files (those with a name that has the s. prefix). If you specify a - (dash) in place of file, the prs command reads standard input and interprets each line as the name of an SCCS file. The prs command continues to take input until it reads an End-of-File character. DESCRIPTION The prs command reads SCCS files, and writes to standard output a part or all of the file according to a format you specify. Data Keywords Data keywords specify the parts of an SCCS file to be retrieved and written to standard output. All parts of an SCCS file have an associ- ated data keyword. There is no limit to the number of times a data keyword can appear in a string. The information that prs displays consists of user-supplied text and appropriate values (extracted from the SCCS file) substituted for the recognized data keywords in the order of appearance in string. The format of a data keyword value is either simple, where the keyword sub- stitution is direct, or multiline, where the substitution is followed by a carriage return. Text is any characters other than recognized data keywords. Specify a tab character with \t and a carriage return or newline character with \n. Remember to quote the \t and \n with an extra \ (slash) to prevent the shell from interpreting the single \ and just passing a t or n to prs as text. The following table lists the keywords associated with information in the delta table in the SCCS file (see the sccsfile(4) reference page for information about file structure). Delta Table Keywords l lw(1.7i) lw(1.7i) l. _ Keyword Data Represented Value For- mat _ :R: Release number num Simple :L: Level number num Simple :B: Branch number num Simple :S: Sequence number num Simple :I: T{ SCCS ID string (SID) T} :R::L::B::S: Simple :Dy: T{ Year delta created T} YY Simple :Dm: T{ Month delta created T} MM Simple :Dd: Day delta created DD Simple :D: T{ Date delta created T} YY/MM/DD Simple :Th: T{ Hour delta created T} HH Simple :Tm: T{ Minute delta created T} MM Simple :Ts: T{ Second delta created T} SS Simple :T: T{ Time delta created T} HH/MM/SS Simple :DT: T{ Delta type~D or R~Simple T} :P: T{ User who created the delta T} login name Simple :DS: T{ Delta sequence number T} num Simple :DP: T{ Previous delta sequence number T} num Simple :Dt: Delta information T{ :DT::I::D: :T::P::DS::DP: T} Simple :Dn: T{ Sequence numbers of deltas included T} :DS:... Simple :Dx: T{ Sequence numbers of deltas excluded T} :DS:... Simple :Dg: T{ Sequence numbers of deltas ignored T} :DS:... Simple :DI: T{ Sequence numbers of deltas included, ex- cluded, and ignored T} :Dn:/:Dx:/:Dg: Simple :Li: T{ Lines inserted by Delta T} num Simple :Ld: T{ Lines deleted by Delta T} num Sim- ple :Lu: T{ Lines unchanged by Delta T} num Simple :DL: T{ Delta line statistics T} :Li:/:Ld:/:Lu: Simple :MR: T{ MR numbers for delta T} text Multiline :C: T{ Comments for delta T} text Multiline _ The following table lists the keywords associated with the header flags in the SCCS file. For more information on header flags, see the ad- min(1) reference page. Header Flag Keywords l lw(1.7i) l l. _ Keyword Data Represented Value Format _ :Y: Module type text Simple :MF: T{ MR validation flag set T} yes or no Simple :MP: T{ MR validation program name T} text Simple :KF: T{ Keyword/error warning flag set T} yes or no Simple :KV: T{ Keyword validation string T} text Simple :BF: Branch flag set yes or no Simple :J: T{ Joint edit flag set T} yes or no Simple :LK: Locked releases :R:... Simple :Q: T{ User-defined keyword T} text Simple :M: Module name text Simple :FB: Floor bound- ary :R: Simple :CB: Ceiling boundary :R: Simple :Ds: Default SID :I: Simple :ND: T{ Null delta flag set T} yes or no Simple :FL: Header flag list text Multiline _ The following table lists the keywords associated with other parts of the SCCS file. Other Keywords l lw(1.7i) lw(1.7i) l. _ Keyword Data Represented Value For- mat _ :UN: Usernames text Multiline :FD: Descriptive text text Mul- tiline :BD: Body of text text Multiline :GB: Text in a g- file text Multiline :W: T{ what string T} T{ :Z::M: <Tab> :I: T} Simple :A: T{ what string T} :Z::Y::M::I::Z: Simple :Z: T{ what string delimiter T} @(#) Simple :F: SCCS file name text Simple :PN: T{ SCCS file path name T} text Simple _ EXIT STATUS The following exit values are returned: Successful completion. An er- ror occurred. EXAMPLES To display information on all deltas generated for SCCS file name s.test.c (including all deltas removed using rmdel), enter: prs -a s.test.c To display username, the number of lines inserted by delta, and the number of lines deleted by delta for SID 1.2 of s.test.c, en- ter: prs -r1.2 -d":P::Li::Ld:" s.test.c ENVIRONMENT VARIABLES The following environment variables affect the execution of prs: Pro- vides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization vari- ables contain an invalid setting, the utility behaves as if none of the variables had been defined. If set to a non-empty string value, over- rides the values of all the other internationalization variables. De- termines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi- byte characters in arguments and input files). Determines the locale for the format and contents of diagnostic messages written to standard error. Determines the location of message catalogues for the process- ing of LC_MESSAGES. FILES Temporary files. SEE ALSO Commands: admin(1), cdc(1), comb(1), delta(1), get(1), rmdel(1), sact(1), sccs(1), sccsdiff(1), sccshelp(1), unget(1), val(1), what(1) Files: sccsfile(4) Standards: standards(5) Programming Support Tools prs(1)

Navigation Options