mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 15:00:44 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
17
tldr/ifne
Normal file
17
tldr/ifne
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 ...}}`
|
||||
Reference in New Issue
Block a user