BuildForge Help

.edit

.edit /<search_expression>/<replace_expression/ [<relative_path>/]file [file ...]

Use the .edit command to search and replace text strings in one or more files. The .edit command replaces the first instance of the string (search_expression) on each and every line in each file specified. Files are assumed to reside in the step's working directory unless you specify a relative path.

The .edit command implements standard POSIX regular expressions for matching and replacement, including the use of () substring selection and \N substitution in the replacement pattern.

.edit replaces the first instance of the string on each and every line in each of the files.

Note: You must explicitly list one or more file names, without wildcards.
For example, the following command replaces strings such as winXPdriver and win2000driver in the file called drivermakefile.
.edit /win*driver/linuxdriver/drivermakefile
The .edit command is similar to the .strsub command; differences include:
Related concepts
.strsub