$ cut -d, -f1 data.csv
$ cut -c1-10 file.txt
| -d | use the given delimiter between fields |
| -f | select these fields |
| -c | select these character positions |
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.