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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,10 @@ Usage:
30
30
go-replace
31
31
32
32
Application Options:
33
-
-m, --mode=[replace|line|lineinfile|template] replacement mode - replace: replace match with term; line: replace line with term;
34
-
lineinfile: replace line with term or if not found append to term to file; template: parse
35
-
content as golang template, search value have to start uppercase (default: replace)
33
+
--threads= Set thread concurrency for replacing in multiple files at same time (default: 10)
34
+
-m, --mode=[replace|line|lineinfile|template] replacement mode - replace: replace match with term; line: replace line with term; lineinfile: replace line with term or
35
+
if not found append to term to file; template: parse content as golang template, search value have to start uppercase
36
+
(default: replace)
36
37
-s, --search= search term
37
38
-r, --replace= replacement term
38
39
--lineinfile-before= add line before this regex
@@ -41,8 +42,7 @@ Application Options:
41
42
--stdin process stdin as input
42
43
-o, --output= write changes to this file (in one file mode)
43
44
--output-strip-ext= strip file extension from written files (also available in multi file mode)
44
-
--once=[keep|unique] replace search term only one in a file, keep duplicaes (keep, default) or remove them
45
-
(unique)
45
+
--once=[keep|unique] replace search term only one in a file, keep duplicaes (keep, default) or remove them (unique)
46
46
--regex treat pattern as regex
47
47
--regex-backrefs enable backreferences in replace term
0 commit comments