📄 ch18_06.htm
字号:
Format and print the contents of one or more SCCS files.By default, <tt class="literal">prt</tt> prints the delta table (i.e., the version log).The <em class="emphasis">sccsfile</em>(4) manpage describes the contents ofSCCS files in detail.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-a</tt></dt><dd>Display entries for all deltas, including removed ones.</p></dd><dt><tt class="literal">-b</tt></dt><dd>Print the body of the SCCS file.</p></dd><dt><tt class="literal">-c</tt><tt><em class="replaceable">date</em></tt></dt><dd>Exclude entries that are prior to <em class="emphasis">date</em></tt>.Each entry is printed as a single line, preceded by the name of the file.This makes it possible to easily sort multiple version logs.</p></dd><dt><tt class="literal">-d</tt></dt><dd>Print delta table entries.This is the default action.</p></dd><dt><tt class="literal">-e</tt></dt><dd>Print everything. This option implies<tt class="literal">-d</tt>,<tt class="literal">-i</tt>,<tt class="literal">-f</tt>,<tt class="literal">-t</tt>,and<tt class="literal">-u</tt>.</p></dd><dt><tt class="literal">-f</tt></dt><dd>Print the flags for each SCCS file.</p></dd><dt><tt class="literal">-i</tt></dt><dd>Print the SIDs of included, excluded, and ignored deltas.</p></dd><dt><tt class="literal">-r</tt><tt><em class="replaceable">date</em></tt></dt><dd>Exclude deltas that are newer than <em class="emphasis">date</em></tt>.</p></dd><dt><tt class="literal">-s</tt></dt><dd>Print only the first line (the statistics) of each delta table.</p></dd><dt><tt class="literal">-t</tt></dt><dd>Print the SCCS file's descriptive text.</p></dd><dt><tt class="literal">-u</tt></dt><dd>Print the usernames and/or numerical group IDs of users thatare allowed to make changes.</p></dd><dt><tt class="literal">-y</tt>[<tt><em class="replaceable">sid</em></tt>]</dt><dd>Exclude deltas that are older than <em class="emphasis">sid</em></tt>.If no delta in the table matches <em class="emphasis">sid</em>, print the entire table.With no <em class="emphasis">sid</em>, print informationfor the current delta.</p></dd></dl></td></tr><tr><td valign="top"><a name="rmdel">rmdel</a></td><td><p><tt class="literal">rmdel</tt> <tt class="literal">-r</tt> <em class="replaceable"><tt>sid files</tt></em></p><p><a name="IXT-18-123517" />Remove a delta from one or more SCCS <em class="emphasis">files</em>,where <em class="emphasis">sid</em> is the SCCS ID.The delta must be the most recent in its branch,and it cannot be checked out for editing.</p></td></tr><tr><td valign="top"><a name="sact">sact</a></td><td><p><tt class="literal">sact</tt> <em class="replaceable"><tt>files</tt></em></p><p><a name="IXT-18-123518" /><a name="IXT-18-123519" /><a name="IXT-18-123520" /><a name="IXT-18-123521" />For the specified SCCS <em class="emphasis">files</em>, reportwhich deltas are about to change (i.e., which files are currentlybeing edited via <tt class="literal">get -e</tt> but haven't yet been updated via <tt class="literal">delta</tt>).<tt class="literal">sact</tt> lists output in five fields: SCCS ID of thecurrent delta being edited, SCCS ID of the new delta to create, user who issued the <tt class="literal">get -e</tt>, and the date and time it was issued.</p></td></tr><tr><td valign="top"><a name="sccsdiff">sccsdiff</a></td><td><p><tt class="literal">sccsdiff</tt> <tt class="literal">-r</tt><em class="replaceable"><tt>sid1</em> <tt class="literal">-r</tt><em class="replaceable">sid2 </em> [<em class="replaceable">options</em>] <em class="replaceable">files</tt></em></p><p><a name="IXT-18-123522" />Report differences between two versions of an SCCS <em class="emphasis">file</em>.<em class="emphasis">sid1</em> and <em class="emphasis">sid2</em> identify the deltas to be compared.This command invokes <tt class="literal">bdiff</tt>, which inturn calls <tt class="literal">diff</tt>.Solaris <tt class="literal">sccsdiff</tt> calls <tt class="literal">diff</tt>,not <tt class="literal">bdiff</tt>.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-p</tt></dt><dd>Pipe output through <tt class="literal">pr</tt>.</p></dd><dt><tt class="literal">-s</tt><tt><em class="replaceable">n</em></tt></dt><dd>Use file segment size <em class="emphasis">n</em></tt> (<em class="emphasis">n</em></tt> is passed to <tt class="literal">bdiff</tt>).</p></dd></dl></td></tr><tr><td valign="top"><a name="unget">unget</a></td><td><p><tt class="literal">unget</tt> [<em class="replaceable"><tt>options</em>] <em class="replaceable">files</tt></em></p><p><a name="IXT-18-123523" />Cancel a previous <tt class="literal">get -e</tt> for one or more SCCS<em class="emphasis">files</em>. If a file is being edited via <tt class="literal">get -e</tt>,issuing <tt class="literal">delta</tt> processes the edits (creatinga new delta), whereas <tt class="literal">unget</tt> deletes the edited version(preventing a new delta from being made).</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-n</tt></dt><dd>Do not remove file retrieved with <tt class="literal">get -e</tt>.</p></dd><dt><tt class="literal">-r</tt><tt><em class="replaceable">sid</em></tt></dt><dd>The SCCS ID of the delta to cancel;needed only if <tt class="literal">get -e</tt> is issued more than once for the same SCCS file.</p></dd><dt><tt class="literal">-s</tt></dt><dd>Suppress display of the intended delta's <em class="emphasis">sid</em></tt>.</p></dd></dl></td></tr><tr><td valign="top"><a name="val">val</a></td><td><p><tt class="literal">val</tt> [<tt><em class="replaceable"><tt>options</em></tt>] <tt><em class="replaceable">files</tt></em></tt></p><p><a name="IXT-18-123524" />Validate that the SCCS <em class="emphasis">files</em></tt> meet the characteristicsspecified in the options. <tt class="literal">val</tt> produces messages on the standardoutput for each file and returns an 8-bit code upon exit.The codes are described in “Return Value Bits”; bits are counted left to right.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-</tt></dt><dd>Read standard input and interpret each line as a <tt class="literal">val</tt> command-lineargument. Exit with an <em class="emphasis">EOF</em>. This option is used by itself.</p></dd><dt><tt class="literal">-m</tt><tt><em class="replaceable">name</em></tt></dt><dd>Compare <em class="emphasis">name</em></tt> with <tt class="literal">%M%</tt> keyword in <em class="emphasis">file</em></tt>.</p></dd><dt><tt class="literal">-r</tt><tt><em class="replaceable">sid</em></tt></dt><dd>Check whether the SCCS ID is ambiguous orinvalid.</p></dd><dt><tt class="literal">-s</tt></dt><dd>Silence any error message.</p></dd><dt><tt class="literal">-y</tt><tt><em class="replaceable">type</em></tt></dt><dd>Compare <em class="emphasis">type</em></tt> with <tt class="literal">%Y%</tt> keyword in <em class="emphasis">file</em></tt>.</p></dd></dl><h4 class="refsect2">Return Value Bits</h4><table border="1" cellpadding="3"><tr><th>Bit</th><th>Meaning</th></tr><tr><td>0</td><td><p>Missing file argument.</p></td></tr><tr><td>1</td><td><p>Unknown or duplicate option.</p></td></tr><tr><td>2</td><td><p>Corrupted SCCS file.</p></td></tr><tr><td>3</td><td><p>Cannot open file, or file is not an SCCS file.</p></td></tr><tr><td>4</td><td><p>SID is invalid or ambiguous.</p></td></tr><tr><td>5</td><td><p>Nonexistent SID.</p></td></tr><tr><td>6</td><td><p>Mismatch between type and <tt class="literal">-y</tt> argument.</p></td></tr><tr><td>7</td><td><p>Mismatch between filename and <tt class="literal">-m</tt> argument.</p></td></tr></table><p></td></tr><tr><td valign="top"><a name="what">what</a></td><td><p><tt class="literal">what</tt> [<em class="replaceable"><tt>option</em>] <em class="replaceable">files</tt></em></p><p><a name="IXT-18-123525" />Search <em class="emphasis">files</em> for the pattern <tt class="literal">@(#)</tt> and print the textthat follows it.(Typically, <em class="emphasis">files</em> are binary executables.)Actually, the pattern searched for is the value of<tt class="literal">%Z%</tt>, but the <tt class="literal">get</tt> command expands this keyword to<tt class="literal">@(#)</tt>.The main purpose of <tt class="literal">what</tt> is to print identification strings.</p><h4 class="refsect2">Option</h4><dl><dt><tt class="literal">-s</tt></dt><dd>Quit after finding the first occurrence of a pattern.</p></dd></dl></td></tr></table><p><a name="IXT-18-123526" /><a name="IXT-18-123527" /><hr width="684" align="left" /><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch18_05.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228"><a href="index.htm"><img src="../gifs/txthome.gif" alt="Home" border="0" /></a></td><td align="right" valign="top" width="228"><a href="ch18_07.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr><tr><td align="left" valign="top" width="228">18.5. Data Keywords</td><td align="center" valign="top" width="228"><a href="index/index.htm"><img src="../gifs/index.gif" alt="Book Index" border="0" /></a></td><td align="right" valign="top" width="228">18.7. sccs and Pseudo-Commands</td></tr></table></div><hr width="684" align="left" /><img src="../gifs/navbar.gif" usemap="#library-map" border="0" alt="Library Navigation Links" /><p><p><font size="-1"><a href="copyrght.htm">Copyright © 2003</a> O'Reilly & Associates. All rights reserved.</font></p><map name="library-map"><area shape="rect" coords="1,0,88,96" href="../index.htm"><area shape="rect" coords="90,0,165,96" href="../upt/index.htm"><area shape="rect" coords="168,1,253,107" href="../mac/index.htm"><area shape="rect" coords="255,0,335,97" href="../korn/index.htm"><area shape="rect" coords="337,0,415,109" href="../unixnut/index.htm"><area shape="rect" coords="417,0,512,122" href="../sedawk/index.htm"><area shape="rect" coords="514,0,605,105" href="../lunix/index.htm"><area shape="rect" coords="611,2,694,121" href="../vi/index.htm"></map></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -