From a92aec7dc09f9c6e2eeb3d0d9bc3bd9db4f65b8b Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 25 Aug 2015 00:56:09 +0100 Subject: [PATCH] restore short option -i per discussion in #293 --- pages/common/sed.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pages/common/sed.md b/pages/common/sed.md index 6e07a388d..14bc91de0 100644 --- a/pages/common/sed.md +++ b/pages/common/sed.md @@ -6,10 +6,9 @@ `sed 's/{{find}}/{{replace}}/' {{filename}}` -- replace all occurrences of a string in a file, overwriting the file - contents +- replace all occurrences of a string in a file, overwriting the file (i.e. in-place) -`sed --in-place 's/{{find}}/{{replace}}/g' {{filename}}` +`sed -i 's/{{find}}/{{replace}}/g' {{filename}}` - replace all occurrences of an extended regular expression in a file