Linux

cut

SafeExtract columns

cut -d',' -f1,3 <file>

Splits by delimiter and prints selected fields — quick column extraction from CSVs and logs.

Examples

  • cut -d: -f1 /etc/passwdList usernames

Syntax

cut -d DELIM -f LIST [file]

Before you run it

Read only.

Related commands

  • awkField processing
  • sortSort / unique
  • trTranslate/delete chars

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store