Last active
March 18, 2016 15:21
-
-
Save herejia/ffe2ee5d6b0c946223b6 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# sudo pip install sqlparse | |
# sudo apt-get install xclip | |
echo "$1" | tr -s [:blank:] > /tmp/sqlfmt.in | |
sqlformat --reindent --keywords upper --identifiers lower /tmp/sqlfmt.in | xclip -selection c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sqlfmt.sh 'select columna, columnb fRoM table_Name'
copies in the clipboard :