cut -d',' -f2 file.csv

Category: Text Processing

cut -d',' -f2 file.csv

Extract the second field from a comma-delimited file

Extracts the second column from a comma-separated file. -d',' sets comma as the field delimiter, -f2 selects field 2.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.