1IFNE(1)                            moreutils                           IFNE(1)
2
3
4

NAME

6       ifne - Run command if the standard input is not empty
7

SYNOPSIS

9       ifne [-n] command
10

DESCRIPTION

12       ifne runs the following command if and only if the standard input is
13       not empty.
14

OPTIONS

16       -n
17           Reverse operation. Run the command if the standard input is empty.
18
19           Note that if the standard input is not empty, it is passed through
20           ifne in this case.
21

EXAMPLE

23       find . -name core | ifne mail -E 'set escape' -s "Core files found"
24                                                                                root
25

AUTHOR

27       Copyright 2008 by Javier Merino <cibervicho@gmail.com>
28
29       Licensed under the GNU GPL
30
31
32
33moreutils                         2008-05-01                           IFNE(1)
Impressum