Created
November 14, 2013 23:04
-
-
Save mplscorwin/7475976 to your computer and use it in GitHub Desktop.
Diff a file with its (emacs style) backup
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
#!/bin/bash | |
F=$1 | |
shift | |
diff $* $F $F~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.