ibrt2016/replace string in file

Replace string in file

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathFile pathyes
oldStringThe regex of old string, which should be replacedyes
oldStringWinThe regex of old string in windows, if it existed, it will be used instead of oldStringno""
oldStringLinuxThe regex of old string in linux, if it existed, it will be used instead of oldStringno""
newStringReplace old string to this stringyes""
newStringWinThe new string in windows, if it existed, it will be used to replace old string instead of newStringnonullForStringInAction
newStringLinuxThe new in linux, if it existed, it will be used to replace old string instead of newStringnonullForStringInAction
showFileContentPrint out file content after replacementnofalse
regexOptionsRegex options of oldString regexnog
escapeBackslashEscape backslash ( \ -> \\ in win and \ -> / )nofalse

no outputs