Skip to content

Instantly share code, notes, and snippets.

@unfo unfo/output.txt
Created Aug 24, 2016

Embed
What would you like to do?
$ 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
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
You can’t perform that action at this time.