Run a command depending on the emptyness of stdin. More information: https://joeyh.name/code/moreutils/.
stdin
ifne command options ...
stdout
ifne -n command options ...