Difference between revisions of "Cut"

From wikieduonline
Jump to navigation Jump to search
(Created page with " cut --help cut: illegal option -- - usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-w | -d delim] [file ...] == See also == * {{...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
  
 +
cut --help
 +
cut: illegal option -- -
 +
usage: cut -b list [-n] [file ...]
 +
        cut -c list [file ...]
 +
        cut -f list [-s] [-w | -d delim] [file ...]
  
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 ==
 +
* https://stackoverflow.com/questions/tagged/cut?tab=Frequent
 +
 +
== Related ==
 +
* <code>[[awk -F]]</code>
 +
* <code>[[tr]]</code>
 +
* [[cut -d]]
  
 
== See also ==
 
== See also ==
 +
* {{tr}}
 
* {{awk}}
 
* {{awk}}
 +
* {{cut}}
 +
 +
[[Category:Computing]]

Latest revision as of 13:19, 2 April 2024

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[edit]

Related[edit]

See also[edit]

Advertising: