Created
December 8, 2022 09:56
-
-
Save ylacancellera/f4443ef04cfb8c9f30a496b4e1d6544f to your computer and use it in GitHub Desktop.
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
grep -oPz "CREATE TABLE \`.*\` \(\n(.*\`.*\`.*\n)*\) ENGINE=.*\n" output.txt | sed -Ee 's/^\).*[^(),]$/\0;/' > ddl.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment