From 4915aa3b8b92492384f1a10c936c4e52b70b47b6 Mon Sep 17 00:00:00 2001 From: Khaja Minhajuddin Date: Mon, 11 Apr 2016 00:48:24 +0530 Subject: [PATCH] sed.md: use alternative separators (#806) --- pages/common/sed.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/sed.md b/pages/common/sed.md index 51b1dcc226..8594dcaf68 100644 --- a/pages/common/sed.md +++ b/pages/common/sed.md @@ -21,3 +21,7 @@ - Apply multiple find-replace expressions to a file: `sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}` + +- Replace separator / by any other character not used in your string, e.g., #: + +`sed 's#{{find}}#{{replace}}#' {{filename}}`