Parsing CSV at the command line with `csvcut`
Parsing csv at the command line is easy with the csvcut tool from csvkit.
csvkit
is installable with pip
You can print only the columns you are interested in.
It also handles quoted csv columns:
It handles new lines:
There are a virtual plethora of options check out csvcut --help
.
csvkit
has a number of csv processing tools, check them out here.