Skip to Content
gnux

-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

ShortLongValueDefaultMeaning
-e--expressionSCRIPTadd 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.conf

Help in the terminal

gnux help sedx --expression

On this page