tokenReplace

Parameters:
Name Type Required Default Hint
path globber true file(s) to replace tokens in. Globbing patters allowed such as *.txt
token string true The token to search for
replacement string true The replacement text to use
verbose boolean false false Output file names that have been modified

Command Usage

Replace text tokens in one or more files. Token matches are case insensitive.

tokenReplace path=/path/to/file.txt token="@@version@@" replacement=`package version`

tokenReplace path=/tests/*.cfc token="@@version@@" replacement=`package version`
Use the "verbose" param to see all the files affected
tokenReplace path=file.txt token="foo" replacement="bar"