Name | Type | Required | Default | Hint |
inputOrFile | string | true | The text to process, or a file name to read with --file | |
commands | string | true | The command to perform on the input text. Ex: s/replaceMe/withMe/g | |
file | boolean | false | false | Specifiy true to treat the input as a file path to read. |
Stream editor command for manipulating text one line at a time. Sed is similar to the
many Unix implementations, but only supports the "s" command (substitute) currently.
Pass or pipe the text to process or a filename along with the --file flag.
sed "hello world" s/hello/goodbye/The substitute command syntax is "s/replaceMe/withMe/" where "s" is the command,
Outputs: "goodbye world"
echo "one hundred and one" | sed s/ONE/two/giAll other regex rules follow what is implemented in REReplace() CFML function.
Outputs: "two hundred and two"
sed --file config.cfm s~/var/www/~/sites/wwwroot/~i > config.cfm