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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store