]> err.no Git - moreutils/blob - ifne.docbook
Update name one more place
[moreutils] / ifne.docbook
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4
5 Copyright 2008 Javier Merino <cibervicho@gmail.com>
6
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
11
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 Public License for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21 -->
22
23 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
24 "file:///usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd"
25 []>
26
27 <refentry>
28         <refentryinfo>
29                 <address>
30                         <email>cibervicho@gmail.com</email>
31                 </address>
32                 <author>
33                         <firstname>Javier</firstname>
34                         <surname>Merino</surname>
35                 </author>
36                 <date>2008-05-01</date>
37         </refentryinfo>
38
39         <refmeta>
40                 <refentrytitle>ifne</refentrytitle>
41                 <manvolnum>1</manvolnum>
42         </refmeta>
43
44         <refnamediv>
45                 <refname>ifne</refname> 
46                 <refpurpose>Run command if the standard input is not empty</refpurpose>
47         </refnamediv>
48
49         <refsynopsisdiv>
50                 <cmdsynopsis>
51                         <command>ifne [-n] command</command>
52                 </cmdsynopsis>
53         </refsynopsisdiv>
54         
55         <refsect1>
56                 <title>DESCRIPTION</title>
57                 
58                 <para><command>ifne</command> runs the following command if and only if
59                         the standard input is not empty.</para>
60         </refsect1>
61         
62         <refsect1>
63                 <title>OPTIONS</title>
64
65                 <variablelist>
66                         <varlistentry>
67                                 <term><option>-n</option></term>
68                                 <listitem>
69                                         <para>Reverse operation. Run the command if the standard input is empty.</para>
70                                         <para>Note that if the standard input is not empty, it is passed through ifne
71                                         in this case.</para>
72                                 </listitem>
73                         </varlistentry>
74                 </variablelist>
75         </refsect1>
76
77         <refsect1>
78                 <title>EXAMPLE</title>
79                 <cmdsynopsis>
80                         <command>find . -name core | ifne mail -s "Core files found" root</command>
81                 </cmdsynopsis>
82         </refsect1>
83
84         <refsect1>
85                 <title>AUTHOR</title>
86
87                 <para>Copyright 2008 by Javier Merino &lt;cibervicho@gmail.com&gt;</para>
88                 <para>Licensed under the GNU GPL</para>
89         </refsect1>
90
91 </refentry>