sed: reword last example and add it to the osx version too

This commit is contained in:
Waldir Pimenta
2016-04-21 19:11:33 +01:00
parent d8a3a7f5e3
commit 1c76b8ea7b
2 changed files with 5 additions and 1 deletions

View File

@@ -22,6 +22,6 @@
`sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}` `sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}`
- Replace separator / by any other character not used in your string, e.g., #: - Replace separator / by any other character not used in the find or replace patterns, e.g., #:
`sed 's#{{find}}#{{replace}}#' {{filename}}` `sed 's#{{find}}#{{replace}}#' {{filename}}`

View File

@@ -21,3 +21,7 @@
- Apply multiple find-replace expressions to a file: - Apply multiple find-replace expressions to a file:
`sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}` `sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}`
- Replace separator / by any other character not used in the find or replace patterns, e.g., #:
`sed 's#{{find}}#{{replace}}#' {{filename}}`