2025-03-14 21:59:59 -06:00
|
|
|
# ifne
|
|
|
|
|
|
|
|
|
|
> Run a command depending on the emptyness of `stdin`.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/ifne>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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 ...}}`
|