logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ifne - Run command if the standard input is not empty

Author

       Copyright 2008 by Javier Merino <cibervicho@gmail.com>

       Licensed under the GNU GPL

moreutils                                          2008-05-01                                            IFNE(1)

Description

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

Example

find.-namecore|ifnemail-E'setescape'-s"Corefilesfound"root

Name

       ifne - Run command if the standard input is not empty

Options

-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.

Synopsis

ifne[-n]command

See Also