Skip to content

Instantly share code, notes, and snippets.

@mplscorwin
Created November 14, 2013 23:04
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 mplscorwin/7475976 to your computer and use it in GitHub Desktop.
Save mplscorwin/7475976 to your computer and use it in GitHub Desktop.
Diff a file with its (emacs style) backup
#!/bin/bash
F=$1
shift
diff $* $F $F~
@mplscorwin
Copy link
Author

This is just a glorified alias but was handy today. target-filename goes before extra switches to diff, which is odd and therefor probably bad. Also, should beef this up to verify stuff exists before calling diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment