Print the first and third fields from a CSV-like file.
Section: cut and paste
Extract comma-delimited fields
bash
bash
cut -d, -f1,3 users.csvExplanation
`cut` is fast and simple for delimited text when quoting rules are uncomplicated.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing cut and paste