diff --git a/sed.md b/sed.md new file mode 100644 index 000000000..0e00b54bd --- /dev/null +++ b/sed.md @@ -0,0 +1,17 @@ +--- +title: Sed +layout: default +--- + +### OSX Caveat + +To do in place replacements `-i ''` is required (GNU/sed is different) + + sed -i '' -e 's/foo/bar/' example.md + + +### GNU/sed + +To do in place replacements use `-i` without arg + + sed -i -e 's/foo/bar/' example.md