svgrep
is a small utility for filtering and searching in separated values
files (CSV, TSV, whatever).
Here is its synopsis:
``` USAGE: svgrep [FLAGS] [OPTIONS] [--] [FILE]
FLAGS: -h, --help Prints help information -t, --trim Trim the cell contents when printing. -V, --version Prints version information
OPTIONS:
-@, --cell-select-char
Syntax:
<col>=<regex>(&<col>=<regex>)+@<disp_cols>
<col> is a natural number or * meaning any column.
<regex> is a regex matched against the cells at column <col>.
<disp_cols> is a comma-separated list of columns to display (defaul: all).
--match '1=foo&2=bar' acts as logical AND wheras multiple expressions like
--match '1=foo' '2=bar' act as a logical OR.
-=, --matches-char <char> Separates a <col> from the <regex> in --match expressions.
(default: =).
-s, --separator <char> Sets the separator to be used (default: ';')
ARGS:
If you've found a bug, please report it at ~tsdh/svgrep.