mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
13 lines
352 B
Markdown
13 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 ...}}`
|