Created
March 3, 2020 23:36
-
-
Save lukecurtis93/712ed48ee2698eb76b00513972fbf181 to your computer and use it in GitHub Desktop.
SED A database with different encoding
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
sed -E "s/(X'[^,\)]*')/CONVERT(\1 using utf8mb4)/g" ~/Desktop/rocheledb_2020-02-18.sql > ~/Desktop/outfile.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment