You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace the whole line with replacement when line is matching (`--mode=line`)
19
+
- ... and add the line at the bottom if there is no match (`--mode=lineinfile`)
20
+
- Use [golang template](https://golang.org/pkg/text/template/) with [Sprig template functions]](https://masterminds.github.io/sprig/) (`--mode=template`)
21
+
- Can store file as other filename (eg. `go-replace ./configuration.tmpl:./configuration.conf`)
22
+
- Can replace files in directory (`--path`) and offers file pattern matching functions (`--path-pattern` and `--path-regex`)
23
+
- Can read also stdin for search&replace or template handling
0 commit comments