Skip to content

Commit c8755c6

Browse files
committed
deploy: f0e8d44
1 parent 77059f6 commit c8755c6

File tree

5 files changed

+4
-154
lines changed

5 files changed

+4
-154
lines changed

user/print.html

+1-76
Original file line numberDiff line numberDiff line change
@@ -2268,81 +2268,6 @@ <h2 id="options-17"><a class="header" href="#options-17">Options</a></h2>
22682268
</dl>
22692269
<p>Each call must specify a mode (what to use for columns),
22702270
a sequence (which columns to print), and provide a data source</p>
2271-
<p>Specifying a mode</p>
2272-
<pre><code>Use --bytes (-b) or --characters (-c) to specify byte mode
2273-
2274-
Use --fields (-f) to specify field mode, where each line is broken into
2275-
fields identified by a delimiter character. For example for a typical CSV
2276-
you could use this in combination with setting comma as the delimiter
2277-
</code></pre>
2278-
<p>Specifying a sequence</p>
2279-
<pre><code>A sequence is a group of 1 or more numbers or inclusive ranges separated
2280-
by a commas.
2281-
2282-
cut -f 2,5-7 some_file.txt
2283-
will display the 2nd, 5th, 6th, and 7th field for each source line
2284-
2285-
Ranges can extend to the end of the row by excluding the the second number
2286-
2287-
cut -f 3- some_file.txt
2288-
will display the 3rd field and all fields after for each source line
2289-
2290-
The first number of a range can be excluded, and this is effectively the
2291-
same as using 1 as the first number: it causes the range to begin at the
2292-
first column. Ranges can also display a single column
2293-
2294-
cut -f 1,3-5 some_file.txt
2295-
will display the 1st, 3rd, 4th, and 5th field for each source line
2296-
2297-
The --complement option, when used, inverts the effect of the sequence
2298-
2299-
cut --complement -f 4-6 some_file.txt
2300-
will display the every field but the 4th, 5th, and 6th
2301-
</code></pre>
2302-
<p>Specifying a data source</p>
2303-
<pre><code>If no sourcefile arguments are specified, stdin is used as the source of
2304-
lines to print
2305-
2306-
If sourcefile arguments are specified, stdin is ignored and all files are
2307-
read in consecutively if a sourcefile is not successfully read, a warning
2308-
will print to stderr, and the eventual status code will be 1, but cut
2309-
will continue to read through proceeding sourcefiles
2310-
2311-
To print columns from both STDIN and a file argument, use - (dash) as a
2312-
sourcefile argument to represent stdin.
2313-
</code></pre>
2314-
<p>Field Mode options</p>
2315-
<pre><code>The fields in each line are identified by a delimiter (separator)
2316-
2317-
Set the delimiter
2318-
Set the delimiter which separates fields in the file using the
2319-
--delimiter (-d) option. Setting the delimiter is optional.
2320-
If not set, a default delimiter of Tab will be used.
2321-
2322-
If the -w option is provided, fields will be separated by any number
2323-
of whitespace characters (Space and Tab). The output delimiter will
2324-
be a Tab unless explicitly specified. Only one of -d or -w option can be specified.
2325-
This is an extension adopted from FreeBSD.
2326-
2327-
Optionally Filter based on delimiter
2328-
If the --only-delimited (-s) flag is provided, only lines which
2329-
contain the delimiter will be printed
2330-
2331-
Replace the delimiter
2332-
If the --output-delimiter option is provided, the argument used for
2333-
it will replace the delimiter character in each line printed. This is
2334-
useful for transforming tabular data - e.g. to convert a CSV to a
2335-
TSV (tab-separated file)
2336-
</code></pre>
2337-
<p>Line endings</p>
2338-
<pre><code>When the --zero-terminated (-z) option is used, cut sees \0 (null) as the
2339-
'line ending' character (both for the purposes of reading lines and
2340-
separating printed lines) instead of \n (newline). This is useful for
2341-
tabular data where some of the cells may contain newlines
2342-
2343-
echo 'ab\0cd' | cut -z -c 1
2344-
will result in 'a\0c\0'
2345-
</code></pre>
23462271
<h2 id="examples-16"><a class="header" href="#examples-16">Examples</a></h2>
23472272
<p>Print a specific character/field range of each line:</p>
23482273
<pre><code class="language-shell">{{command}} | cut --{{characters|fields}}={{1|1,10|1-10|1-|-10}}
@@ -9649,7 +9574,7 @@ <h2 id="examples-101"><a class="header" href="#examples-101">Examples</a></h2>
96499574
</div>
96509575
<pre><code>users [FILE]
96519576
</code></pre>
9652-
<p>Print the user names of users currently logged in to the current host</p>
9577+
<p>Print the user names of users currently logged in to the current host.</p>
96539578
<h2 id="options-112"><a class="header" href="#options-112">Options</a></h2>
96549579
<dl><dt></dt>
96559580
<dd>

user/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

user/searchindex.json

+1-1
Large diffs are not rendered by default.

user/utils/cut.html

-75
Original file line numberDiff line numberDiff line change
@@ -233,81 +233,6 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
233233
</dl>
234234
<p>Each call must specify a mode (what to use for columns),
235235
a sequence (which columns to print), and provide a data source</p>
236-
<p>Specifying a mode</p>
237-
<pre><code>Use --bytes (-b) or --characters (-c) to specify byte mode
238-
239-
Use --fields (-f) to specify field mode, where each line is broken into
240-
fields identified by a delimiter character. For example for a typical CSV
241-
you could use this in combination with setting comma as the delimiter
242-
</code></pre>
243-
<p>Specifying a sequence</p>
244-
<pre><code>A sequence is a group of 1 or more numbers or inclusive ranges separated
245-
by a commas.
246-
247-
cut -f 2,5-7 some_file.txt
248-
will display the 2nd, 5th, 6th, and 7th field for each source line
249-
250-
Ranges can extend to the end of the row by excluding the the second number
251-
252-
cut -f 3- some_file.txt
253-
will display the 3rd field and all fields after for each source line
254-
255-
The first number of a range can be excluded, and this is effectively the
256-
same as using 1 as the first number: it causes the range to begin at the
257-
first column. Ranges can also display a single column
258-
259-
cut -f 1,3-5 some_file.txt
260-
will display the 1st, 3rd, 4th, and 5th field for each source line
261-
262-
The --complement option, when used, inverts the effect of the sequence
263-
264-
cut --complement -f 4-6 some_file.txt
265-
will display the every field but the 4th, 5th, and 6th
266-
</code></pre>
267-
<p>Specifying a data source</p>
268-
<pre><code>If no sourcefile arguments are specified, stdin is used as the source of
269-
lines to print
270-
271-
If sourcefile arguments are specified, stdin is ignored and all files are
272-
read in consecutively if a sourcefile is not successfully read, a warning
273-
will print to stderr, and the eventual status code will be 1, but cut
274-
will continue to read through proceeding sourcefiles
275-
276-
To print columns from both STDIN and a file argument, use - (dash) as a
277-
sourcefile argument to represent stdin.
278-
</code></pre>
279-
<p>Field Mode options</p>
280-
<pre><code>The fields in each line are identified by a delimiter (separator)
281-
282-
Set the delimiter
283-
Set the delimiter which separates fields in the file using the
284-
--delimiter (-d) option. Setting the delimiter is optional.
285-
If not set, a default delimiter of Tab will be used.
286-
287-
If the -w option is provided, fields will be separated by any number
288-
of whitespace characters (Space and Tab). The output delimiter will
289-
be a Tab unless explicitly specified. Only one of -d or -w option can be specified.
290-
This is an extension adopted from FreeBSD.
291-
292-
Optionally Filter based on delimiter
293-
If the --only-delimited (-s) flag is provided, only lines which
294-
contain the delimiter will be printed
295-
296-
Replace the delimiter
297-
If the --output-delimiter option is provided, the argument used for
298-
it will replace the delimiter character in each line printed. This is
299-
useful for transforming tabular data - e.g. to convert a CSV to a
300-
TSV (tab-separated file)
301-
</code></pre>
302-
<p>Line endings</p>
303-
<pre><code>When the --zero-terminated (-z) option is used, cut sees \0 (null) as the
304-
'line ending' character (both for the purposes of reading lines and
305-
separating printed lines) instead of \n (newline). This is useful for
306-
tabular data where some of the cells may contain newlines
307-
308-
echo 'ab\0cd' | cut -z -c 1
309-
will result in 'a\0c\0'
310-
</code></pre>
311236
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
312237
<p>Print a specific character/field range of each line:</p>
313238
<pre><code class="language-shell">{{command}} | cut --{{characters|fields}}={{1|1,10|1-10|1-|-10}}

user/utils/users.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ <h1 id="users"><a class="header" href="#users">users</a></h1>
180180
</div>
181181
<pre><code>users [FILE]
182182
</code></pre>
183-
<p>Print the user names of users currently logged in to the current host</p>
183+
<p>Print the user names of users currently logged in to the current host.</p>
184184
<h2 id="options"><a class="header" href="#options">Options</a></h2>
185185
<dl><dt></dt>
186186
<dd>

0 commit comments

Comments
 (0)