ifne

Run a command depending on the emptyness of stdin. More information: https://joeyh.name/code/moreutils/.

ifne command options ...

ifne -n command options ...