Last active
February 3, 2023 00:10
-
-
Save pulketo/dea624a3ff51a0c30f91d6f89b8679f4 to your computer and use it in GitHub Desktop.
dirty hack to diff compare two SQL dumps for changes
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
#these commands will modify sql structure for A.sql and B.sql, so make a backup first | |
sed -i 's/(/\n/g;s/,/\n/g' A.sql B.sql ; diff A.sql B.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment