File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,13 @@ Application Options:
18
18
--dry-run dry run mode
19
19
-V, --version show version and exit
20
20
-h, --help show this help message
21
- ```
21
+ ```
22
+
23
+ ### Examples
24
+
25
+ | Command | Description |
26
+ | -----------------------------------------------------------------------| -----------------------------------------------------------------------------------------------|
27
+ | ` goreplace -s foobar -r barfoo file1 file2 ` | Replaces ` foobar ` to ` barfoo ` in file1 and file2 |
28
+ | ` goreplace --regex -s 'foo.*' -r barfoo file1 file2 ` | Replaces the regex ` foo.* ` to ` barfoo ` in file1 and file2 |
29
+ | ` goreplace --regex --ignore-case -s 'foo.*' -r barfoo file1 file2 ` | Replaces the regex ` foo.* ` (and ignore case) to ` barfoo ` in file1 and file2 |
30
+ | ` goreplace --whole-line -s 'foobar' -r barfoo file1 file2 ` | Replaces all lines with content ` foobar ` to ` barfoo ` (whole line) in file1 and file2 |
You can’t perform that action at this time.
0 commit comments