commands.sh

ifne

all

Run a command depending on the emptiness of `stdin`.

More info →

Examples (2)

Run the specified command if and only if `stdin` is not empty

ifne command command_options

Run the specified command if and only if `stdin` is empty, otherwise pass `stdin` to `stdout`

ifne -n command command_options
made by @shridhargupta | data from tldr-pages