Created
August 24, 2016 05:33
-
-
Save unfo/875af6989778510f8609ed50c9946f86 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
$ seddiff 's/redcarpet/magiccarpet/;s/pygments/rouge/' _config.yml | |
Result of s/redcarpet/magiccarpet/;s/pygments/rouge/ against _config.yml: | |
7,8c7,8 | |
< markdown: magiccarpet | |
< highlighter: rouge | |
--- | |
> markdown: redcarpet | |
> highlighter: pygments | |
54c54 | |
< - magiccarpet | |
--- | |
> - redcarpet | |
56c56 | |
< - rouge.rb | |
--- | |
> - pygments.rb | |
71c71 | |
< - magiccarpet | |
--- | |
> - redcarpet | |
73c73 | |
< - rouge.rb | |
--- | |
> - pygments.rb |
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
function seddiff () { sed -i.bak "$1" $2; echo "Result of $1 against $2:"; diff ${2}{,.bak}; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment