4 releases
0.2.2 | May 1, 2019 |
---|---|
0.2.0 | Apr 21, 2019 |
0.1.1 | Apr 3, 2019 |
0.1.0 | Apr 3, 2019 |
#19 in #empty
3KB
emptypipe
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
0.2.2 | May 1, 2019 |
---|---|
0.2.0 | Apr 21, 2019 |
0.1.1 | Apr 3, 2019 |
0.1.0 | Apr 3, 2019 |
#19 in #empty
3KB
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