Difference between revisions of "Cut"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
 
[[Tabulator]] as separator:
 
[[Tabulator]] as separator:
 
  cut -f1 -d$'\t'
 
  cut -f1 -d$'\t'
 +
 +
echo 'maps.google.com' | rev | [[cut]] -d'.' -f 1 | [[rev]]
  
  

Revision as of 16:36, 5 May 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


See also

Advertising: