csvgrep -c name -m 'alice' data.csv

Category: Data Science & Analysis

csvgrep -c name -m 'alice' data.csv

Keep rows where the name column equals alice

csvgrep filters rows like grep but column-aware. The -c flag names the column and -m matches a literal string, here alice, keeping rows where that column equals it exactly. It is case-sensitive by default. Use -r with a regex for pattern matching instead of exact strings.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.