harelba/q
https://github.com/harelba/q
CSVやTSVをもとにSQLで検索と絞り込みをするツール
付属機能で SQLite への変換もできる
インストール
macOS 環境下では Xcode のインストールが必要です
code:sh
# Homebrew からインストール
brew install harelba/q/q
ヘッダーつきCSVから情報を絞り込む
code:sh
q -H -d, 'SELECT count(*) FROM input.csv'
q -H -d, 'SELECT * FROM input.csv where id in (1,2,3)'