.strsub <source> <replacement> file [file ...]
Use the .strsub command to perform basic string replacement in one or more text files. The system scans the target files for the <source> string; where a match is found, the system replaces the <source> string with the <replacement>. The .strsub command replaces every instance of the string (source) on each and every line in each file.
The .strsub command works across operating systems, without depending on any specific commands being available on the server.
.strsub _VERSION_ 2.34 about.c
.strsub _VERSION_ 2.34 *.txt
However,
you can use variables in the command, so a command such as the following
works if the VERSION and FILENAME variables have been defined in the
environment..strsub _VERSION_ ${VERSION} ${FILENAME}
The .edit command uses POSIX Extended Regular Expression syntax by default. If the agent has been compiled with Perl Compatible Regular Expression support, then the substitution expression may be followed with a "p" character (to indicate that PCRE syntax should be used, instead).
Four slashes escape a literal period:
\\\\.
Alternatively, you can use the /x flag to suppress
backslashes:.strsub/x