Skip to content

Instantly share code, notes, and snippets.

@xvzftube
Created March 6, 2021 14:53
Show Gist options
  • Save xvzftube/a23e39a8105bbf4e4821a095400cc2e2 to your computer and use it in GitHub Desktop.
Save xvzftube/a23e39a8105bbf4e4821a095400cc2e2 to your computer and use it in GitHub Desktop.
Using q to run sql-like commands in the command line.
#!/bin/bash
wget https://github.com/harelba/q/releases/download/2.0.19/q-text-as-data_2.0.19-2_amd64.deb
sudo dpkg -i q-text-as-data_2.0.19-2_amd64.deb
wget https://gist.githubusercontent.com/sarchak/b87ad2be315ce05f7a047550646f3c41/raw/0c7d83608111f74f212398fc0d2a704e4f8dc499/diamonds.csv
q -HOd , "select * from diamonds.csv limit 10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment