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 -s "Core files found" root
24

AUTHOR

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