-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
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-r | --no-run-if-empty | none | if 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 rmxShow the size limits in effect without running anything
xargsx --show-limits -r < /dev/nullHelp in the terminal
gnux help xargsx --no-run-if-empty