Skip to Content
gnux

-r, --no-run-if-empty

If there are no arguments, then do not run COMMAND; if this option is not given, COMMAND will be run at least once.

An option of xargsx.

Usage

xargsx -r [COMMAND [INITIAL-ARGUMENT]...]
xargsx --no-run-if-empty [COMMAND [INITIAL-ARGUMENT]...]

Details

ShortLongValueDefaultMeaning
-r--no-run-if-emptynoneif there are no arguments, then do not run COMMAND; if this option is not given, COMMAND will be run at least once

Examples

Do nothing at all when the search finds no file

findx . -name '*.orig' -print0 | xargsx -0 -r rmx

Show the size limits in effect without running anything

xargsx --show-limits -r < /dev/null

Help in the terminal

gnux help xargsx --no-run-if-empty

On this page