Source: cirosantilli/csvgrep-and-select-column-in-csvkit
= csvgrep and select column in csvkit
There seems to be no way without a pipe, you seem to need to reparse the columns, e.g. the tutorial at: https://csvkit.readthedocs.io/en/latest/tutorial/2_examining_the_data.html#csvgrep-find-the-data-you-need does:
``
csvcut -c county,item_name,total_cost data.csv | csvgrep -c county -m LANCASTER
``
Asked at: https://stackoverflow.com/questions/77266699/how-to-fillter-a-csv-file-with-csvgrep-and-print-only-certain-columns