What does cut do?

extract selected columns from each line.

▸ Explain your own cut command →

cut examples, explained

$ cut -d, -f1 data.csv

  • cutextract selected columns from each line
  • -d,use the given delimiter between fields
  • -f1select these fields
  • data.csvan argument passed to the command

$ cut -c1-10 file.txt

  • cutextract selected columns from each line
  • -c1-10select these character positions
  • file.txtan argument passed to the command

cut flags & options

-duse the given delimiter between fields
-fselect these fields
-cselect these character positions

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.