csvgrep
Filter CSV rows with string and pattern matching. tldr-pages
On several platforms
Several platforms
Filter CSV rows with string and pattern matching. Included in csvkit.
Find rows that have a certain string in column 1
csvgrep --columns 1 --match string_to_match data.csvIdentifyFind rows in which columns 3 or 4 match a certain regex
csvgrep --columns 3,4 --regex regex data.csvIdentifyFind rows in which the "name" column does NOT include the string "John Doe"
csvgrep --invert-match --columns name --match "John Doe" data.csvIdentify