Last active
August 18, 2016 02:20
-
-
Save resourcemode/a682dfeda0692d706a71537f2d980f91 to your computer and use it in GitHub Desktop.
import mysql
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 | |
FILES=/Users/IT/dumps/LocalDB/* | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
# take action on each file. $f store current file name | |
mysql -uDBUSER -hDBHOST --pDBPASSWORD DBNAME < $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment