Last active
April 25, 2018 12:01
-
-
Save soaxelbrooke/1a74854d1623ad1ec6653d35ecd7d444 to your computer and use it in GitHub Desktop.
Execute a multi-line sqlite script without having to create a script file! Works with make!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo ".mode csv && .header on && .once report.csv && select * from report;" | sed -E -e 's/\s*\&+\s*/\n/g' | sqlite3 database.sqlite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment