Skip to content

Instantly share code, notes, and snippets.

@pulketo
Last active February 3, 2023 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pulketo/dea624a3ff51a0c30f91d6f89b8679f4 to your computer and use it in GitHub Desktop.
Save pulketo/dea624a3ff51a0c30f91d6f89b8679f4 to your computer and use it in GitHub Desktop.
dirty hack to diff compare two SQL dumps for changes
#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