Skip to content

Commit 2914159

Browse files
committed
deploy: 055173b
1 parent aad9e06 commit 2914159

File tree

4 files changed

+160
-10
lines changed

4 files changed

+160
-10
lines changed

user/print.html

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4557,17 +4557,92 @@ <h2 id="examples-57"><a class="header" href="#examples-57">Examples</a></h2>
45574557
<div style="break-before: page; page-break-before: always;"></div><h1 id="pr"><a class="header" href="#pr">pr</a></h1>
45584558
<div class="version">version: 0.0.12
45594559
</div>
4560-
<pre><code>pr
4560+
<pre><code>pr [OPTIONS] [files]...
45614561
</code></pre>
45624562
<p>Write content of given file or standard input to standard output with pagination filter</p>
45634563
<h2 id="options-61"><a class="header" href="#options-61">Options</a></h2>
4564-
<dl><dt><code>--help</code>, <code>-h</code></dt>
4564+
<dl><dt><code>--pages=&lt;FIRST_PAGE[:LAST_PAGE]&gt;</code></dt>
45654565
<dd>
4566-
<p>Print help information</p>
4566+
<p>Begin and stop printing with page FIRST_PAGE[:LAST_PAGE]</p>
4567+
</dd>
4568+
<dt><code>--header=&lt;STRING&gt;</code>, <code>-h &lt;STRING&gt;</code></dt>
4569+
<dd>
4570+
<p>Use the string header to replace the file name in the header line.</p>
4571+
</dd>
4572+
<dt><code>--double-space</code>, <code>-d</code></dt>
4573+
<dd>
4574+
<p>Produce output that is double spaced. An extra <newline> character is output following every <newline><br /> found in the input.</p>
4575+
</dd>
4576+
<dt><code>--number-lines=&lt;[char][width]&gt;</code>, <code>-n &lt;[char][width]&gt;</code></dt>
4577+
<dd>
4578+
<p>Provide width digit line numbering. The default for width, if not specified, is 5. The number occupies<br /> the first width column positions of each text column or each line of -m output. If char (any non-digit<br /> character) is given, it is appended to the line number to separate it from whatever follows. The default<br /> for char is a <tab>. Line numbers longer than width columns are truncated.</p>
4579+
</dd>
4580+
<dt><code>--first-line-number=&lt;NUMBER&gt;</code>, <code>-N &lt;NUMBER&gt;</code></dt>
4581+
<dd>
4582+
<p>start counting with NUMBER at 1st line of first page printed</p>
4583+
</dd>
4584+
<dt><code>--omit-header</code>, <code>-t</code></dt>
4585+
<dd>
4586+
<p>Write neither the five-line identifying header nor the five-line trailer usually supplied for each page. Quit<br /> writing after the last line of each file without spacing to the end of the page.</p>
4587+
</dd>
4588+
<dt><code>--length=&lt;PAGE_LENGTH&gt;</code>, <code>-l &lt;PAGE_LENGTH&gt;</code></dt>
4589+
<dd>
4590+
<p>Override the 66-line default (default number of lines of text 56, and with -F 63) and reset the page length to lines. If lines is not greater than the sum of both<br /> the header and trailer depths (in lines), the pr utility shall suppress both the header and trailer, as if the<br /> -t option were in effect. </p>
4591+
</dd>
4592+
<dt><code>--no-file-warnings</code>, <code>-r</code></dt>
4593+
<dd>
4594+
<p>omit warning when a file cannot be opened</p>
4595+
</dd>
4596+
<dt><code>--form-feed</code>, <code>-F</code></dt>
4597+
<dd>
4598+
<p>Use a <form-feed> for new pages, instead of the default behavior that uses a sequence of <newline>s.</p>
4599+
</dd>
4600+
<dt><code>--width=&lt;width&gt;</code>, <code>-w &lt;width&gt;</code></dt>
4601+
<dd>
4602+
<p>Set the width of the line to width column positions for multiple text-column output only. If the -w option is<br /> not specified and the -s option is not specified, the default width shall be 72. If the -w option is not specified<br /> and the -s option is specified, the default width shall be 512.</p>
4603+
</dd>
4604+
<dt><code>--page-width=&lt;width&gt;</code>, <code>-W &lt;width&gt;</code></dt>
4605+
<dd>
4606+
<p>set page width to PAGE_WIDTH (72) characters always,<br /> truncate lines, except -J option is set, no interference<br /> with -S or -s</p>
4607+
</dd>
4608+
<dt><code>--across</code>, <code>-a</code></dt>
4609+
<dd>
4610+
<p>Modify the effect of the - column option so that the columns are filled across the page in a round-robin order<br /> (for example, when column is 2, the first input line heads column 1, the second heads column 2, the third is the<br /> second line in column 1, and so on).</p>
4611+
</dd>
4612+
<dt><code>--column=&lt;column&gt;</code></dt>
4613+
<dd>
4614+
<p>Produce multi-column output that is arranged in column columns (the default shall be 1) and is written down each<br /> column in the order in which the text is received from the input file. This option should not be used with -m.<br /> The options -e and -i shall be assumed for multiple text-column output. Whether or not text columns are produced<br /> with identical vertical lengths is unspecified, but a text column shall never exceed the length of the<br /> page (see the -l option). When used with -t, use the minimum number of lines to write the output.</p>
4615+
</dd>
4616+
<dt><code>--separator=&lt;char&gt;</code>, <code>-s &lt;char&gt;</code></dt>
4617+
<dd>
4618+
<p>Separate text columns by the single character char instead of by the appropriate number of <space>s<br /> (default for char is the <tab> character).</p>
4619+
</dd>
4620+
<dt><code>--sep-string=&lt;string&gt;</code>, <code>-S &lt;string&gt;</code></dt>
4621+
<dd>
4622+
<p>separate columns by STRING,<br /> without -S: Default separator <TAB> with -J and <space><br /> otherwise (same as -S&quot; &quot;), no effect on column options</p>
4623+
</dd>
4624+
<dt><code>--merge</code>, <code>-m</code></dt>
4625+
<dd>
4626+
<p>Merge files. Standard output shall be formatted so the pr utility writes one line from each file specified by a<br /> file operand, side by side into text columns of equal fixed widths, in terms of the number of column positions.<br /> Implementations shall support merging of at least nine file operands.</p>
4627+
</dd>
4628+
<dt><code>--indent=&lt;margin&gt;</code>, <code>-o &lt;margin&gt;</code></dt>
4629+
<dd>
4630+
<p>Each line of output shall be preceded by offset <space>s. If the -o option is not specified, the default offset<br /> shall be zero. The space taken is in addition to the output line width (see the -w option below).</p>
4631+
</dd>
4632+
<dt><code>-J</code></dt>
4633+
<dd>
4634+
<p>merge full lines, turns off -W line truncation, no column<br /> alignment, --sep-string[=STRING] sets separators</p>
4635+
</dd>
4636+
<dt><code>--help</code></dt>
4637+
<dd>
4638+
<p>Show this help message</p>
45674639
</dd>
45684640
<dt><code>--version</code>, <code>-V</code></dt>
45694641
<dd>
4570-
<p>Print version information</p>
4642+
<p>Show version information</p>
4643+
</dd>
4644+
<dt></dt>
4645+
<dd>
45714646
</dd>
45724647
</dl>
45734648
<h2 id="examples-58"><a class="header" href="#examples-58">Examples</a></h2>

user/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

user/searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

user/utils/pr.html

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,92 @@ <h1 class="menu-title">uutils Documentation</h1>
163163
<h1 id="pr"><a class="header" href="#pr">pr</a></h1>
164164
<div class="version">version: 0.0.12
165165
</div>
166-
<pre><code>pr
166+
<pre><code>pr [OPTIONS] [files]...
167167
</code></pre>
168168
<p>Write content of given file or standard input to standard output with pagination filter</p>
169169
<h2 id="options"><a class="header" href="#options">Options</a></h2>
170-
<dl><dt><code>--help</code>, <code>-h</code></dt>
170+
<dl><dt><code>--pages=&lt;FIRST_PAGE[:LAST_PAGE]&gt;</code></dt>
171171
<dd>
172-
<p>Print help information</p>
172+
<p>Begin and stop printing with page FIRST_PAGE[:LAST_PAGE]</p>
173+
</dd>
174+
<dt><code>--header=&lt;STRING&gt;</code>, <code>-h &lt;STRING&gt;</code></dt>
175+
<dd>
176+
<p>Use the string header to replace the file name in the header line.</p>
177+
</dd>
178+
<dt><code>--double-space</code>, <code>-d</code></dt>
179+
<dd>
180+
<p>Produce output that is double spaced. An extra <newline> character is output following every <newline><br /> found in the input.</p>
181+
</dd>
182+
<dt><code>--number-lines=&lt;[char][width]&gt;</code>, <code>-n &lt;[char][width]&gt;</code></dt>
183+
<dd>
184+
<p>Provide width digit line numbering. The default for width, if not specified, is 5. The number occupies<br /> the first width column positions of each text column or each line of -m output. If char (any non-digit<br /> character) is given, it is appended to the line number to separate it from whatever follows. The default<br /> for char is a <tab>. Line numbers longer than width columns are truncated.</p>
185+
</dd>
186+
<dt><code>--first-line-number=&lt;NUMBER&gt;</code>, <code>-N &lt;NUMBER&gt;</code></dt>
187+
<dd>
188+
<p>start counting with NUMBER at 1st line of first page printed</p>
189+
</dd>
190+
<dt><code>--omit-header</code>, <code>-t</code></dt>
191+
<dd>
192+
<p>Write neither the five-line identifying header nor the five-line trailer usually supplied for each page. Quit<br /> writing after the last line of each file without spacing to the end of the page.</p>
193+
</dd>
194+
<dt><code>--length=&lt;PAGE_LENGTH&gt;</code>, <code>-l &lt;PAGE_LENGTH&gt;</code></dt>
195+
<dd>
196+
<p>Override the 66-line default (default number of lines of text 56, and with -F 63) and reset the page length to lines. If lines is not greater than the sum of both<br /> the header and trailer depths (in lines), the pr utility shall suppress both the header and trailer, as if the<br /> -t option were in effect. </p>
197+
</dd>
198+
<dt><code>--no-file-warnings</code>, <code>-r</code></dt>
199+
<dd>
200+
<p>omit warning when a file cannot be opened</p>
201+
</dd>
202+
<dt><code>--form-feed</code>, <code>-F</code></dt>
203+
<dd>
204+
<p>Use a <form-feed> for new pages, instead of the default behavior that uses a sequence of <newline>s.</p>
205+
</dd>
206+
<dt><code>--width=&lt;width&gt;</code>, <code>-w &lt;width&gt;</code></dt>
207+
<dd>
208+
<p>Set the width of the line to width column positions for multiple text-column output only. If the -w option is<br /> not specified and the -s option is not specified, the default width shall be 72. If the -w option is not specified<br /> and the -s option is specified, the default width shall be 512.</p>
209+
</dd>
210+
<dt><code>--page-width=&lt;width&gt;</code>, <code>-W &lt;width&gt;</code></dt>
211+
<dd>
212+
<p>set page width to PAGE_WIDTH (72) characters always,<br /> truncate lines, except -J option is set, no interference<br /> with -S or -s</p>
213+
</dd>
214+
<dt><code>--across</code>, <code>-a</code></dt>
215+
<dd>
216+
<p>Modify the effect of the - column option so that the columns are filled across the page in a round-robin order<br /> (for example, when column is 2, the first input line heads column 1, the second heads column 2, the third is the<br /> second line in column 1, and so on).</p>
217+
</dd>
218+
<dt><code>--column=&lt;column&gt;</code></dt>
219+
<dd>
220+
<p>Produce multi-column output that is arranged in column columns (the default shall be 1) and is written down each<br /> column in the order in which the text is received from the input file. This option should not be used with -m.<br /> The options -e and -i shall be assumed for multiple text-column output. Whether or not text columns are produced<br /> with identical vertical lengths is unspecified, but a text column shall never exceed the length of the<br /> page (see the -l option). When used with -t, use the minimum number of lines to write the output.</p>
221+
</dd>
222+
<dt><code>--separator=&lt;char&gt;</code>, <code>-s &lt;char&gt;</code></dt>
223+
<dd>
224+
<p>Separate text columns by the single character char instead of by the appropriate number of <space>s<br /> (default for char is the <tab> character).</p>
225+
</dd>
226+
<dt><code>--sep-string=&lt;string&gt;</code>, <code>-S &lt;string&gt;</code></dt>
227+
<dd>
228+
<p>separate columns by STRING,<br /> without -S: Default separator <TAB> with -J and <space><br /> otherwise (same as -S&quot; &quot;), no effect on column options</p>
229+
</dd>
230+
<dt><code>--merge</code>, <code>-m</code></dt>
231+
<dd>
232+
<p>Merge files. Standard output shall be formatted so the pr utility writes one line from each file specified by a<br /> file operand, side by side into text columns of equal fixed widths, in terms of the number of column positions.<br /> Implementations shall support merging of at least nine file operands.</p>
233+
</dd>
234+
<dt><code>--indent=&lt;margin&gt;</code>, <code>-o &lt;margin&gt;</code></dt>
235+
<dd>
236+
<p>Each line of output shall be preceded by offset <space>s. If the -o option is not specified, the default offset<br /> shall be zero. The space taken is in addition to the output line width (see the -w option below).</p>
237+
</dd>
238+
<dt><code>-J</code></dt>
239+
<dd>
240+
<p>merge full lines, turns off -W line truncation, no column<br /> alignment, --sep-string[=STRING] sets separators</p>
241+
</dd>
242+
<dt><code>--help</code></dt>
243+
<dd>
244+
<p>Show this help message</p>
173245
</dd>
174246
<dt><code>--version</code>, <code>-V</code></dt>
175247
<dd>
176-
<p>Print version information</p>
248+
<p>Show version information</p>
249+
</dd>
250+
<dt></dt>
251+
<dd>
177252
</dd>
178253
</dl>
179254
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>

0 commit comments

Comments
 (0)