Difference between revisions of "Cut"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
 
== Related ==
 
== Related ==
 
* <code>[[awk -F]]</code>
 
* <code>[[awk -F]]</code>
 +
* <code>[[tr]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 20:29, 25 June 2022

cut --help
cut: illegal option -- -
usage: cut -b list [-n] [file ...]
       cut -c list [file ...]
       cut -f list [-s] [-w | -d delim] [file ...]


Tabulator as separator:

cut -f1 -d$'\t'
echo 'maps.google.com' | rev | cut -d'.' -f 1 | rev

Activities

Related

See also

Advertising: