Created
August 28, 2015 00:50
-
-
Save bsouthga/b64bc850c348ada571c1 to your computer and use it in GitHub Desktop.
Shell script to fix enron mysql syntax in enron data dump from http://bailando.sims.berkeley.edu/enron_email.html
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
#!/usr/bin/env bash | |
# change encoding for sed | |
LC_CTYPE=C | |
LANG=C | |
# replace mysql syntax for 4 -> 5 | |
cat ./enron.sql \ | |
| sed -e 's/timestamp(14)/timestamp/' \ | |
| sed -e 's/) TYPE=/) ENGINE=/' \ | |
> enron-fixed.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment