ppt

 view release on metacpan or  search on metacpan

html/commands/cut/cut.lafferty.html  view on Meta::CPAN


<p>cut <code lang='und' xml:lang='und'>-c</code> list [file ...]</p>

<p>cut <code lang='und' xml:lang='und'>-f</code> list [<code lang='und' xml:lang='und'>-d</code> delim] [<code lang='und' xml:lang='und'>-s</code>] [file ...]</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>The <b>cut</b> utility selects portions of each line (as specified by <i>list</i>) from each <i>file</i> (or the standard input by default),
and writes them to the standard output.
The items specified by <i>list</i> can be in terms of column position or in terms of fields delimited by a special character.
Column numbering starts from 1.</p>

<p><i>list</i> is a comma- or whitespace-separated set of increasing numbers and/or number ranges.
Number ranges consist of a number,
a dash (&#39;-&#39;),
and a second number and select the fields or columns from the first number to the second,
inclusive.
Numbers or number ranges may be preceded by a dash,
which selects all fields or columns from 1 to the first number.
Numbers or number ranges may be followed by a dash,
which selects all fields or columns from the last number to the end of the line.
Numbers and number ranges may be repeated,
overlapping,
and in any order.
It is not an error to select fields or columns not present in the input line.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="OPTIONS"
>OPTIONS</a></h1>

<p><b>cut</b> accepts the following options:</p>

<dl>
<dt><a name="-b_list"
>-b list</a></dt><p class="pad"></p>

<dd>The <i>list</i> specifies byte positions.</dd><p class="pad"></p>

<dt><a name="-c_list"
>-c list</a></dt><p class="pad"></p>

<dd>The <i>list</i> specifies character positions.</dd><p class="pad"></p>

<dt><a name="-d_string"
>-d string</a></dt><p class="pad"></p>

<dd>Use the first character of <i>string</i> as the field delimiter character instead of the tab character.</dd><p class="pad"></p>

<dt><a name="-f_list"
>-f list</a></dt><p class="pad"></p>

<dd>The <i>list</i> specifies fields,
delimited in the input by a single tab character.
Output fields are separated by a single tab character.</dd><p class="pad"></p>

<dt><a name="-n"
>-n</a></dt><p class="pad"></p>

<dd>Do not split multi-byte characters.</dd><p class="pad"></p>

<dt><a name="-s"
>-s</a></dt><p class="pad"></p>

<dd>Suppresses lines with no field delimiter characters.
Unless specified,
lines with no delimiters are passed through unmodified.</dd><p class="pad"></p>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="BUGS"
>BUGS</a></h1>

<p><b>cut</b> does not understand multibyte characters; the <code lang='und' xml:lang='und'>-c</code> and <code lang='und' xml:lang='und'>-b</code> options function identically,
and <code lang='und' xml:lang='und'>-n</code> does nothing.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="STANDARDS"
>STANDARDS</a></h1>

<p>This <b>cut</b> implementation is compatible with the <i>OpenBSD</i> implementation.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="AUTHOR"
>AUTHOR</a></h1>

<p>The Perl implementation of <b>cut</b> was written by Rich Lafferty,
<i>rich@alcor.concordia.ca</i>.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="COPYRIGHT_and_LICENSE"
>COPYRIGHT and LICENSE</a></h1>

<p>This program is free and open software.
You may use,
copy,
modify,
distribute and sell this program (and any modified variants) in any way you wish,
provided you do not restrict others to do the same.</p>

<!-- end doc -->

</body></html>



( run in 0.849 second using v1.01-cache-2.11-cpan-5511b514fd6 )