Skip to content
masterclass Buddy

Linux & Shell · Command

cut

cut prints selected bytes, characters, or fields from each input line. It reads files or standard input and writes the result to standard output.

Last updated

Syntax

cut OPTION ... [ FILE ]...

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • --bytes
  • --characters
  • --complement
  • --delimiter
  • --fields
  • --only-delimited
  • --output-delimiter
  • --zero-terminated

Source: cut(1) - Linux manual page. Checked 2026-11-03.