1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 02:15:23 +02:00
tldr/pages/common/ifne.md
Managor d2e6da7679
common*: refresh old pages part 7 (#16290)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-01 14:38:45 +03:00

341 B

ifne

Run a command depending on the emptyness of stdin. More information: https://manned.org/ifne.

  • 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 ...}}