csvgrep_notes
sample commands
csvgrep -c col1 -m "val1" file.csv | \ csvgrep -c col2 -r "foo|bar" | \ csvcut -c col1,col2,col3 | \ column -t -s,
demonstrates | regex a or b
Ref:- https://dl.icewarp.com/online_help/203030104.htm - Simple RegEx Tutorial. It talks about the '|' OR operator in regex. For example “foo|bar” matches a string that has either “foo” or “bar” in it.
useful links
csvgrep_notes.txt · Last modified: 2021/07/20 21:37 by raju