Options (4)
-c, --columnsbooleanFind rows that have a certain string in column 1
Example:
csvgrep {{[-c|--columns]}} {{1}} {{[-m|--match]}} {{string_to_match}} {{data.csv}}-m, --matchbooleanFind rows that have a certain string in column 1
Example:
csvgrep {{[-c|--columns]}} {{1}} {{[-m|--match]}} {{string_to_match}} {{data.csv}}-r, --regexbooleanFind rows in which columns 3 or 4 match a certain `regex`
Example:
csvgrep {{[-c|--columns]}} {{3,4}} {{[-r|--regex]}} {{regex}} {{data.csv}}-i, --invert-matchbooleanFind rows in which the "name" column does NOT include the string "John Doe"
Example:
csvgrep {{[-i|--invert-match]}} {{[-c|--columns]}} {{name}} {{[-m|--match]}} "{{John Doe}}" {{data.csv}}Examples (3)
Find rows that have a certain string in column 1
csvgrep [-c|--columns] 1 [-m|--match] string_to_match data.csvFind rows in which columns 3 or 4 match a certain `regex`
Find rows in which the "name" column does NOT include the string "John Doe"
csvgrep [-i|--invert-match] [-c|--columns] name [-m|--match] "John Doe" data.csvmade by @shridhargupta | data from tldr-pages