q-textasdata is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files). q-textasdata treats ordinary files as database tables, and supports all SQL constructs, such as WHERE, GROUP BY, JOINs, etc. It supports automatic column name and type detection, and q provides full support for multiple character encodings.

WWW: https://harelba.github.io/q
