mirror of https://github.com/CrimsonTome/tldr.git
restore short option -i per discussion in #293
parent
0348a644de
commit
a92aec7dc0
|
@ -6,10 +6,9 @@
|
||||||
|
|
||||||
`sed 's/{{find}}/{{replace}}/' {{filename}}`
|
`sed 's/{{find}}/{{replace}}/' {{filename}}`
|
||||||
|
|
||||||
- replace all occurrences of a string in a file, overwriting the file
|
- replace all occurrences of a string in a file, overwriting the file (i.e. in-place)
|
||||||
contents
|
|
||||||
|
|
||||||
`sed --in-place 's/{{find}}/{{replace}}/g' {{filename}}`
|
`sed -i 's/{{find}}/{{replace}}/g' {{filename}}`
|
||||||
|
|
||||||
- replace all occurrences of an extended regular expression in a file
|
- replace all occurrences of an extended regular expression in a file
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue