Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
IFNE(1)				   moreutils			       IFNE(1)

NAME
       ifne - Run command if the standard input	is not empty

SYNOPSIS
       ifne [-n] command

DESCRIPTION
       ifne runs the following command if and only 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.

EXAMPLE
       find . -name core | ifne	mail -s	"Core files found" root

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

       Licensed	under the GNU GPL

moreutils			  2008-05-01			       IFNE(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLE | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ifne&sektion=1&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help