1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:22:07 +02:00
tldr/pages/common/ifne.md
Juri Dispan a5bc5828f3
chronic, combine, ifdata, ifne, isutf8: add pages (#12114)
* chronic, combine, ifdata, ifne, isutf8: add pages

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-01-24 12:59:50 +05:30

12 lines
352 B
Markdown

# ifne
> 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 pass `stdin` to `stdout`:
`ifne -n {{command options ...}}`