nambers/replace string in file
Replace string in file
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| path | File path | yes | — |
| oldString | The regex of old string, which should be replaced | yes | — |
| oldStringWin | The regex of old string in windows, if it existed, it will be used instead of oldString | no | "" |
| oldStringLinux | The regex of old string in linux, if it existed, it will be used instead of oldString | no | "" |
| newString | Replace old string to this string | yes | "" |
| newStringWin | The new string in windows, if it existed, it will be used to replace old string instead of newString | no | nullForStringInAction |
| newStringLinux | The new in linux, if it existed, it will be used to replace old string instead of newString | no | nullForStringInAction |
| showFileContent | Print out file content after replacement | no | false |
| regexOptions | Regex options of oldString regex | no | g |
| escapeBackslash | Escape backslash ( \ -> \\ in win and \ -> / ) | no | false |
Outputs
no outputs