Crates.io | emptypipe |
lib.rs | emptypipe |
version | 0.2.2 |
source | src |
created_at | 2019-04-03 15:40:17.647494 |
updated_at | 2019-05-01 14:18:03.62362 |
description | Run a command if stdin is empty |
homepage | |
repository | https://github.com/sigmaSd/emptypipe |
max_upload_size | |
id | 125668 |
size | 3,172 |
Run a command if stdin is empty
echo | emptypipe echo 2
Run a command if stdin is not empty
echo 1 | emptypipe -i echo 2