ifne Command Examples
Run a command depending on the emptyness of
stdin
. More information: https://joeyh.name/code/moreutils/.
- Run the specified command if and only if
stdin
is not empty:
ifne {{command options ...}}
- Run the specified command if and only if
stdin
is empty, otherwise passstdin
tostdout
:
ifne -n {{command options ...}}