1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-08 23:54:01 +02:00

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}}`
- 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}}`

View file

@ -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 the find or replace patterns, e.g., #:
`sed 's#{{find}}#{{replace}}#' {{filename}}`