csvcut
Filter and truncate CSV files. tldr-pages
On several platforms
Several platforms
Filter and truncate CSV files. Like Unix's cut command, but for tabular data. Included in csvkit.
Print indices and names of all columns
csvcut --names data.csvIdentifyExtract the first and third columns
csvcut --columns 1,3 data.csvIdentifyExtract all columns except the fourth one
csvcut --not-columns 4 data.csvIdentifyExtract the columns named "id" and "first name" (in that order)
csvcut --columns id,"first name" data.csvIdentify