lineReplace¶
Replace one or more lines in a file.
Parameters¶
line¶
The new line that replaces any matched lines.
| Name | Value |
|---|---|
| Type | string |
| Required | Yes |
path¶
Path of the file.
| Name | Value |
|---|---|
| Type | string |
| Required | Yes |
regexp¶
Regular expression that gets matched against each line in the file. If the regular expression matches, the line is replaced with the value of line.
| Name | Value |
|---|---|
| Type | string |
| Required | Yes, if search isn't set. |
| Default | "" |
search¶
Search string that gets matched against each line in the file. If the line equals the search string, the line is replaced with the value of line.
| Name | Value |
|---|---|
| Type | string |
| Required | Yes, if regexp isn't set. |
| Default | "" |