📄 prs.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>prs</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_001_014_1783"> </a>NAME</h4><blockquote>prs - print an SCCS file (<b>DEVELOPMENT</b>)</blockquote><h4><a name = "tag_001_014_1784"> </a>SYNOPSIS</h4><blockquote><pre><code>prs <b>[</b>-a<b>][</b>-d <i>dataspec</i><b>][</b>-r<b>[</b><i>SID</i><b>]]</b><i> file</i>...prs <b>[</b> -e| -l<b>]</b> -c <i>cutoff </i><b>[</b>-d <i>dataspec</i><b>]</b><i> file</i>...prs <b>[</b> -e| -l<b>]</b> -r<b>[</b><i>SID</i><b>][</b>-d <i>dataspec</i><b>]</b><i>file</i>...</code></pre></blockquote><h4><a name = "tag_001_014_1785"> </a>DESCRIPTION</h4><blockquote>The<i>prs</i>utility writes to standard output parts or all of an SCCS filein a user-supplied format.</blockquote><h4><a name = "tag_001_014_1786"> </a>OPTIONS</h4><blockquote>The<i>prs</i>utility supports the <b>XBD</b> specification, <a href="../xbd/utilconv.html#usg"><b>Utility Syntax Guidelines</b> </a> , except that the<b>-r</b>option has an optional option-argument.This optional option-argument cannot be presented as a separate argument.The following options are supported:<dl compact><dt><b>-d </b><i>dataspec</i><dd>Specify the output data specification.The<i>dataspec</i>is a string consisting of SCCS file<i>data</i><i>keywords</i>(see<xref href=prskey><a href="#tag_001_014_1792_001">Data Keywords</a></xref>)interspersed with optional user-supplied text.<dt><b>-r[</b><i>SID</i><b>]</b><dd>Specify the SCCS identification string (SID)of a delta for which information is desired.If no<i>SID</i>option-argumentis specified, the SID of the most recently created deltais assumed.<dt><b>-e</b><dd>Request information for all deltas created earlierthan and including the delta designated via the<b>-r</b>option or the date-time given by the<b>-c</b>option.<dt><b>-l</b><dd>Request information for all deltas created laterthan and including the delta designated via the<b>-r</b>option or the date-time given by the<b>-c</b>option.<dt><b>-c </b><i>cutoff</i><dd>Indicate the<i>cutoff</i>date-time, in the form:<pre><code><i>YY</i><b>[</b><i>MM</i><b>[</b><i>DD</i><b>[</b><i>HH</i><b>[</b><i>MM</i><b>[</b><i>SS</i><b>]]]]]</b></code></pre>For the <i>YY</i> component,values in the range [69-99] refer to years in the twentieth century(1969 to 1999 inclusive); values in the range [00-68] refer toyears in the twenty-first century (2000 to 2068 inclusive).No changes (deltas) to the SCCS file that were created afterthe specified<i>cutoff</i>date-time are included in the output.Units omitted from the date-time defaultto their maximum possible values;for example,<b>-c 7502</b>is equivalent to<b>-c 750228235959</b>.<dt><b>-a</b><dd>Request writing of information for both removed,that is, delta type = <i>R</i>(seermdel<i>)</i>typeand existing,that is, delta type = <i>D</i>,deltas.If thea<b>-type</b>=option is not specified,information for existing deltas only is provided.</dl><p></blockquote><h4><a name = "tag_001_014_1787"> </a>OPERANDS</h4><blockquote>The following operand is supported:<dl compact><dt><i>file</i><dd>A pathname of an existing SCCS file or a directory.If<i>file</i>is a directory,<i>prs</i>behaves as though each file in the directory werespecified as a named file,except that non-SCCS files(last component of the pathname does not begin withs.)and unreadable files are silently ignored.If a single instance<i>file</i>is specified as -,the standard input is read;each line of the standard input is taken to be the name of an SCCS fileto be processed.Non-SCCS files and unreadable files are silently ignored.</dl></blockquote><h4><a name = "tag_001_014_1788"> </a>STDIN</h4><blockquote>The standard input is a text file used only when the<i>file</i>operand is specified as -.Each line of the text file is interpreted as an SCCS pathname.</blockquote><h4><a name = "tag_001_014_1789"> </a>INPUT FILES</h4><blockquote>Any SCCS files displayed are files of an unspecified format.</blockquote><h4><a name = "tag_001_014_1790"> </a>ENVIRONMENT VARIABLES</h4><blockquote>The following environment variables affect the execution of<i>prs</i>:<dl compact><dt><i>LANG</i><dd>Provide a default value for the internationalisation variablesthat are unset or null.If<i>LANG</i>is unset or null, the corresponding value from theimplementation-dependent default locale will be used.If any of the internationalisation variables contains an invalid setting, theutility will behave as if none of the variables had been defined.<dt><i>LC_ALL</i><dd>If set to a non-empty string value,override the values of all the other internationalisation variables.<dt><i>LC_CTYPE</i><dd>Determine thelocale for the interpretation of sequences of bytes of text data ascharacters (for example, single- as opposed to multi-byte charactersin arguments and input files).<dt><i>LC_MESSAGES</i><dd>Determine the locale that should be used to affectthe format and contents of diagnosticmessages written to standard error.<dt><i>NLSPATH</i><dd>Determine the location of message cataloguesfor the processing of<i>LC_MESSAGES .</i></dl></blockquote><h4><a name = "tag_001_014_1791"> </a>ASYNCHRONOUS EVENTS</h4><blockquote>Default.</blockquote><h4><a name = "tag_001_014_1792"> </a>STDOUT</h4><blockquote>The standard output is a text file whose formatis dependent on the data keywords specified with the<b>-d</b>option.<h5><a name = "tag_001_014_1792_001"> </a>Data Keywords</h5><xref type="5" name="prskey"></xref>Data keywordsspecify which parts of an SCCS file are to be retrieved and output.All parts of an SCCS filehave an associated data keyword.A data keyword may appear in a<i>dataspec</i>multiple times.<p>The information written by<i>prs</i>consists of:(1) the user-supplied text; and(2) appropriate values (extracted from the SCCS file)substituted for the recognised data keywordsin the order of appearance in the<i>dataspec</i>.The format of a data keyword value is either simple (S), in whichkeyword substitution is direct, or multi-line (M).<p>User-supplied text is any text other thanrecognised data keywords.A tab character is specified by\tandnewlineby\n.When the<b>-r</b>option is not specified, the default<i>dataspec</i>is:<pre><code>:PN::\n\n</code></pre>and the following<i>dataspec</i>is used for each selected delta:<pre><code>:Dt:\t:DL:\nMRs:\n:MR:COMMENTS:\n:C:\n</code></pre><p><table bordercolor=#000000 border=1 align=center><tr valign=top><th colspan=5 align=center><b>SCCS File Data Keywords</b><tr valign=top><th align=center><b>Keyword</b><th align=center><b>Data Item</b><th align=center><b>File Section</b><th align=center><b>Value</b><th align=center><b>Format</b><tr valign=top><td align=center><b>:Dt:</b><td align=left>Delta information<td align=center>Delta Table<td align=left><b>See below*</b><td align=center>S<tr valign=top><td align=center><b>:DL:</b><td align=left> Delta line statistics <td align=center>"<td align=left><b>:Li:/:Ld:/:Lu:</b><td align=center>S<tr valign=top><td align=center><b>:Li:</b><td align=left> Lines inserted by Delta <td align=center>"<td align=left><b><i>nnnnn</i></b><td align=center>S<tr valign=top><td align=center><b>:Ld:</b><td align=left> Lines deleted by Delta <td align=center>"<td align=left><b><i>nnnnn</i></b><td align=center>S<tr valign=top><td align=center><b>:Lu:</b><td align=left> Lines unchanged by Delta <td align=center>"<td align=left><b><i>nnnnn</i></b><td align=center>S<tr valign=top><td align=center><b>:DT:</b><td align=left>Delta type<td align=center>"<td align=left><b>D or R</b><td align=center>S<tr valign=top><td align=center><b>:I:</b><td align=left> SCCS ID string (SID) <td align=center>"<td align=left><b>See below**</b><td align=center>S<tr valign=top><td align=center><b>:R:</b><td align=left>Release number<td align=center>"<td align=left><b><i>nnnn</i></b><td align=center>S<tr valign=top><td align=center><b>:L:</b><td align=left>Level number<td align=center>"<td align=left><b><i>nnnn</i></b><td align=center>S<tr valign=top><td align=center><b>:B:</b><td align=left>Branch number<td align=center>"<td align=left><b><i>nnnn</i></b><td align=center>S<tr valign=top><td align=center><b>:S:</b><td align=left>Sequence number<td align=center>"<td align=left><b><i>nnnn</i></b><td align=center>S<tr valign=top><td align=center><b>:D:</b><td align=left> Date delta created <td align=center>"<td align=left><b>:Dy:/:Dm:/:Dd:</b><td align=center>S<tr valign=top><td align=center><b>:Dy:</b><td align=left> Year delta created <td align=center>"<td align=left><b><i>nn</i></b><td align=center>S<tr valign=top><td align=center><b>:Dm:</b><td align=left> Month delta created <td align=center>"<td align=left><b><i>nn</i></b><td align=center>S<tr valign=top><td align=center><b>:Dd:</b><td align=left> Day delta created
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -