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:
parent
d8a3a7f5e3
commit
1c76b8ea7b
2 changed files with 5 additions and 1 deletions
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue