Last active
September 1, 2015 12:19
-
-
Save adamwespiser/1ec9dc6bf2a11cc0001a to your computer and use it in GitHub Desktop.
SQL_Queries_For_Mere_Mortals.sh
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/bash | |
# http://www.informit.com/title/9780321992475 | |
# non-modify ones | |
ls | grep -i structure | grep -v Modify | xargs -I{} echo mysql -u root --password='****' '<' \"{}\" | sh | |
ls | grep -i data | grep -v Modify | xargs -I{} echo mysql -u root --password='*****' '<' \"{}\" | sh | |
# maybe this will work if you just run the structure, then data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment