Skip to content

Instantly share code, notes, and snippets.

@pulketo
Last active February 3, 2023 00:10
Show Gist options
  • Select an option

  • Save pulketo/dea624a3ff51a0c30f91d6f89b8679f4 to your computer and use it in GitHub Desktop.

Select an option

Save pulketo/dea624a3ff51a0c30f91d6f89b8679f4 to your computer and use it in GitHub Desktop.

Revisions

  1. pulketo revised this gist Feb 3, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    #these commands will modify sql structure for A.sql and B.sql, so make a backup first, it's intended not to be destructive, but sheet happens
    #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
  2. pulketo revised this gist Feb 3, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    #these commands will modify sql structure for A.sql and B.sql, so make a backup first, it's intended not to be destructive, but sheet happens
    sed -i 's/(/\n(/g;s/,/,\n/g' A.sql B.sql ; diff A.sql B.sql
    sed -i 's/(/\n/g;s/,/\n/g' A.sql B.sql ; diff A.sql B.sql
  3. pulketo revised this gist Feb 2, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    #these commands will modify sql structure for A.sql and B.sql, so make a backup first, it's intended not to be destructive, but sheet happens
    sed -i 's/(/\n(/g;s/,/,\n/g' A.sql B.SQL ; diff A.sql B.SQL
    sed -i 's/(/\n(/g;s/,/,\n/g' A.sql B.sql ; diff A.sql B.sql
  4. pulketo revised this gist Feb 2, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    sed -i 's/(/\n/g;s/,/\n/g' A.sql B.SQL ; diff A.sql B.SQL
    #these commands will modify sql structure for A.sql and B.sql, so make a backup first, it's intended not to be destructive, but sheet happens
    sed -i 's/(/\n(/g;s/,/,\n/g' A.sql B.SQL ; diff A.sql B.SQL
  5. pulketo created this gist Feb 2, 2023.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sed -i 's/(/\n/g;s/,/\n/g' A.sql B.SQL ; diff A.sql B.SQL