-e, --expression
Add the SCRIPT to the commands to be executed.
An option of sedx.
Usage
sedx -e SCRIPT {script-only-if-no-other-script} [input-file]...
sedx --expression=SCRIPT {script-only-if-no-other-script} [input-file]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-e | --expression | SCRIPT | add the SCRIPT to the commands to be executed |
Examples
Strip comments and blank lines from a config file
sedx -e 's/#.*//' -e '/^[[:space:]]*$/d' nginx.confHelp in the terminal
gnux help sedx --expression