[prev] [index] [next]

cut: vertical slice

The cut command prints selected parts of input lines.
  • can select fields (assumes tab-separated columnated input)
  • can select a range of character positions
Some options:

-flistOfCols print only the specified fields (tab-separated) on output
-clistOfPos print only chars in the specified positions
-d'c' use character c as the field separator

Lists are specified as ranges (e.g. 1-5) or comma-separated (e.g. 2,4,5).