q Command Examples

Execute SQL-like queries on CSV and TSV files. More information: https://harelba.github.io/q.

q {{[-d|--delimiter]}} ',' "SELECT * from {{path/to/file}}"

q {{[-t|--tab-delimited]}} "SELECT * from {{path/to/file}}"

q {{[-d|--delimiter]}} {{delimiter}} {{[-H|--skip-header]}} "SELECT * from {{path/to/file}}"

{{output}} | q "select * from -"

q "SELECT * FROM {{path/to/file}} f1 JOIN {{path/to/other_file}} f2 ON (f1.c1 = f2.c1)"

q {{[-D|--output-delimiter]}} {{delimiter}} {{[-O|--output-header]}} "SELECT {{column}} as {{alias}} from {{path/to/file}}"