q

q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).

Works on Linux, OSX, Windows, and, theoretically, other platforms that support Python.