Section: cut and paste

Exclude selected fields

bash
bash
cut -d, --complement -f2 users.csv
Explanation

Useful when one noisy column needs to be removed.

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
Extract comma-delimited fields
Print the first and third fields from a CSV-like file.
OpenIn sheetbashsame section
Extract character positions
Print characters 1 through 8 from each line.
OpenIn sheetbashsame section
Merge files side by side
Combine lines from two files into columns.
OpenIn sheetbashsame section
Paste with a custom delimiter
Combine files using commas or tabs.
OpenIn sheetbashsame section
Sort lines alphabetically
Default lexicographic sort.
Convert lowercase to uppercase
Translate characters from lower to upper case.