Created
August 8, 2014 15:33
-
-
Save hannestyden/4df49e92f0e9998c8a4f to your computer and use it in GitHub Desktop.
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
# Emulating `sed` with inplace editing **without** backups for OS X | |
# Tested with zsh. | |
sedi () { | |
local ext='.sedi-bak' | |
sed -i $ext $@ | |
rm "${@: -1}$ext" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment