ifne (1) Linux Manual Page
ifne – Run command if the standard input is not empty
Synopsis
- ifne [-n] command
Description
ifneOptions
-n- Reverse operation. Run the command if the standard input is empty.
Note that if the standard input is not empty, it is passed through ifne in this case.
Example
- find . -name core | ifne mail -s "Core files found" root
Author
Licensed under the GNU GPL
