csv-grep-sql - filter rows of CSV stream for which SQL expression returns true
csv-grep-sql [OPTION]…
Read CSV stream from standard input, compute SQL expression for each row and print back to standard output rows for which expression is non-zero.
For full specification of SQL syntax accepted by this tool see csv-sql(1).
csv-ls -c size,name | csv-grep-sql -e "size > 2000 and size < 3000" -s
csv-ls | csv-grep-sql -e "substr(name, 2, 1) == 'o'"
csv-sql(1), csv-grep(1), csv-grep-rpn(1), csv-show(1), csv-nix-tools(7)