mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 07:15:22 +02:00
Merge branch 'jlinder-sed'
This commit is contained in:
commit
508f417359
1 changed files with 6 additions and 0 deletions
|
@ -14,3 +14,9 @@
|
||||||
- replace all occurrences of an extended regular expression in a file
|
- replace all occurrences of an extended regular expression in a file
|
||||||
|
|
||||||
`sed -E 's/{{regex}}/{{replace}}/g' {{filename}}`
|
`sed -E 's/{{regex}}/{{replace}}/g' {{filename}}`
|
||||||
|
|
||||||
|
- replace all occurrences of multiple strings in a file
|
||||||
|
|
||||||
|
`sed -e 's/{{find}}/{{replace}}/g' -e 's/{{find}}/{{replace}}/g' {{filename}}`
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue