357 B
357 B
ifne
Run a command depending on the emptyness of
stdin. More information: https://manned.org/ifne.
- Run the specified command if and only if
stdinis not empty:
ifne {{command}} {{command_options}}
- Run the specified command if and only if
stdinis empty, otherwise passstdintostdout:
ifne -n {{command}} {{command_options}}