Add sed OSX documentation

This commit is contained in:
Zander Hill 2014-05-30 15:01:43 -04:00
parent 2d350582f8
commit 150f3cc0c8
1 changed files with 17 additions and 0 deletions

17
sed.md Normal file
View File

@ -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