Adding a line for sed for making multiple replacements in one command.
This commit is contained in:
@@ -14,3 +14,8 @@
|
|||||||
- 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}}`
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user