csvgrep Command Examples

Filter CSV rows with string and pattern matching. Included in csvkit. More information: https://csvkit.readthedocs.io/en/latest/scripts/csvgrep.html.

csvgrep -c {{1}} -m {{string_to_match}} {{data.csv}}

csvgrep -c {{3,4}} -r {{regular_expression}} {{data.csv}}

csvgrep -i -c {{name}} -m "{{John Doe}}" {{data.csv}}