Add sed OSX documentation
This commit is contained in:
parent
2d350582f8
commit
150f3cc0c8
|
@ -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
|
Loading…
Reference in New Issue