Skip to content

Instantly share code, notes, and snippets.

@eboda
Created November 12, 2014 20:28
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 eboda/6196704dc887d9f4e4c6 to your computer and use it in GitHub Desktop.
Save eboda/6196704dc887d9f4e4c6 to your computer and use it in GitHub Desktop.
diff splitter
#!/bin/sh
sed '/^-/d' $1 | sed -e 's/^+/ /g' > $1.after
sed '/^+/d' $1 | sed -e 's/^-/ /g' > $1.before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment