Created
June 2, 2015 20:27
-
-
Save asaph/799df6b387a29985bd69 to your computer and use it in GitHub Desktop.
Generate a TSV spreadsheet from a SQL command
This file contains 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 | |
mysql databasename -h hostname -u username -p -B -e "select * from mytable;" > /tmp/myreport.tsv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment