]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
More man page work.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 11 Jun 2014 20:10:10 +0000 (20:10 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 11 Jun 2014 20:10:10 +0000 (20:10 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11921 a1ca3aef-8c08-0410-bb20-df032aa958be

doc/help/man-ippfind.html
man/ippfind.man

index 15d6c2c9eeaedecf363ab6697767d5673f7260f4..9f563b0171d30bd749e7c94fa87c13e49e0a8cc5 100644 (file)
@@ -15,45 +15,25 @@ ippfind - find internet printing protocol printers
 <i>options</i>
 ] <i>regtype</i>[<b>,</b><i>subtype</i>][<b>.</b><i>domain</i><b>.</b>] ... [
 <i>expression</i>
+ ... ]
+<br>
 <b>ippfind</b>
 [
 <i>options</i>
-] name[.regtype[.domain.]] ... [
-<i>expression</i><i>...</i>
-]
+] <i>name</i>[<b>.</b><i>regtype</i>[<b>.</b><i>domain</i><b>.</b>]] ... [
+<i>expression</i>
+ ... ]
+<br>
 <b>ippfind</b>
---help
+<b>--help</b>
+<br>
 <b>ippfind</b>
---version
-<h2 class="title"><a name="OPTIONS">Options</a></h2>
-<dl class="man">
-<dt>--help
-<dd style="margin-left: 5.0em">Show program help
-<dt>--version
-<dd style="margin-left: 5.0em">Show program version
-<dt>-4
-<dd style="margin-left: 5.0em">Use IPv4 when listing
-<dt>-6
-<dd style="margin-left: 5.0em">Use IPv6 when listing
-<dt>-T seconds
-<dd style="margin-left: 5.0em">Specify find timeout in seconds. If 1 or less, <i>ippfind</i> stops as soon as it thinks it has found everything. The default is 1 second.
-<dt>-V version
-<dd style="margin-left: 5.0em">Specifies the IPP version when listing. Supported values are 1.1, 2.0, 2.1, and 2.2.
-
-</dl>
+<b>--version</b>
 <h2 class="title"><a name="DESCRIPTION">Description</a></h2>
-<i>ippfind</i> finds services registered with a DNS server or available through local devices. Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands. For example, to show the status of all registered IPP printers on your network, run:
-<pre class="man">
-    ippfind --ls
-</pre>
-Similarly, to send a PostScript test page to every PostScript printer, run:
-<pre class="man">
-    ippfind --txt-pdl application/postscript --exec ipptool \
-        -f onepage-letter.ps '{}' print-job.test \;
-</pre>
-
-<h2 class="title"><a name="REGISTRATION_TYPES">Registration Types</a></h2>
-<i>ippfind</i> supports the following registration types:
+<b>ippfind</b> finds services registered with a DNS server or available through local devices.
+Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands.
+<h3><a name="REGISTRATION_TYPES">Registration Types</a></h3>
+<b>ippfind</b> supports the following registration types:
 <dl class="man">
 <dt>_http._tcp
 <dd style="margin-left: 5.0em">HyperText Transport Protocol (HTTP, RFC 2616)
@@ -65,125 +45,160 @@ Similarly, to send a PostScript test page to every PostScript printer, run:
 <dd style="margin-left: 5.0em">Secure Internet Printing Protocol (IPPS, draft)
 <dt>_printer._tcp
 <dd style="margin-left: 5.0em">Line Printer Daemon (LPD, RFC 1179)
-
 </dl>
-<h2 class="title"><a name="EXPRESSIONS">Expressions</a></h2>
-<i>ippfind</i> supports expressions much like the <i>find(1)</i> utility. However, unlike <i>find</i>, <i>ippfind</i> uses POSIX regular expressions instead of shell filename matching patterns. If --exec, -l, --ls, -p, --print, --print-name, -q, --quiet, -s, or -x is not specified, <i>ippfind</i> adds --print to print the service URI of anything it finds. The following expressions are supported:
+<h3><a name="EXPRESSIONS">Expressions</a></h3>
+<b>ippfind</b> supports expressions much like the
+<b>find</b>(1)
+utility.
+However, unlike
+<b>find</b>(1),
+<b>ippfind</b> uses POSIX regular expressions instead of shell filename matching patterns.
+If <i>--exec</i>, <i>-l</i>, <i>--ls</i>, <i>-p</i>, <i>--print</i>, <i>--print-name</i>, <i>-q</i>, <i>--quiet</i>, <i>-s</i>, or <i>-x</i> is not specified, <b>ippfind</b> adds <i>--print</i> to print the service URI of anything it finds.
+The following expressions are supported:
 <dl class="man">
-<dt>-d regex
-<dd style="margin-left: 5.0em"><dt>--domain regex
+<dt><b>-d </b><i>regex</i>
+<dd style="margin-left: 5.0em"><dt><b>--domain </b><i>regex</i>
 <dd style="margin-left: 5.0em">True if the domain matches the given regular expression.
-<dt>--false
+<dt><b>--false</b>
 <dd style="margin-left: 5.0em">Always false.
-<dt>-h regex
-<dd style="margin-left: 5.0em"><dt>--host regex
+<dt><b>-h </b><i>regex</i>
+<dd style="margin-left: 5.0em"><dt><b>--host </b><i>regex</i>
 <dd style="margin-left: 5.0em">True is the hostname matches the given regular expression.
-<dt>-l
-<dd style="margin-left: 5.0em"><dt>--ls
-<dd style="margin-left: 5.0em">Lists attributes returned by Get-Printer-Attributes for IPP printers and traditional <i>find</i> "-ls" output for HTTP URLs. The result is true if the URI is accessible, false otherwise.
-<dt>--local
+<dt><b>-l</b>
+<dd style="margin-left: 5.0em"><dt><b>--ls</b>
+<dd style="margin-left: 5.0em">Lists attributes returned by Get-Printer-Attributes for IPP printers and traditional <i>find</i> "-ls" output for HTTP URLs.
+The result is true if the URI is accessible, false otherwise.
+<dt><b>--local</b>
 <dd style="margin-left: 5.0em">True if the service is local to this computer.
-<dt>-n regex
-<dd style="margin-left: 5.0em"><dt>--name regex
+<dt><b>-n </b><i>regex</i>
+<dd style="margin-left: 5.0em"><dt><b>--name </b><i>regex</i>
 <dd style="margin-left: 5.0em">True if the service instance name matches the given regular expression.
-<dt>--path regex
+<dt><b>--path </b><i>regex</i>
 <dd style="margin-left: 5.0em">True if the URI resource path matches the given regular expression.
-<dt>-P number[-number]
-<dd style="margin-left: 5.0em"><dt>--port number[-number]
+<dt><b>-P </b><i>number</i>[<b>-</b><i>number</i>]
+<dd style="margin-left: 5.0em"><dt><b>--port </b><i>number</i>[<b>-</b><i>number</i>]
 <dd style="margin-left: 5.0em">True if the port matches the given number or range.
-<dt>-p
-<dd style="margin-left: 5.0em"><dt>--print
-<dd style="margin-left: 5.0em">Prints the URI if the result of previous expressions is true. The result is always true.
-<dt>-q
-<dd style="margin-left: 5.0em"><dt>--quiet
+<dt><b>-p</b>
+<dd style="margin-left: 5.0em"><dt><b>--print</b>
+<dd style="margin-left: 5.0em">Prints the URI if the result of previous expressions is true.
+The result is always true.
+<dt><b>-q</b>
+<dd style="margin-left: 5.0em"><dt><b>--quiet</b>
 <dd style="margin-left: 5.0em">Quiet mode - just returns the exit codes below.
-<dt>-r
-<dd style="margin-left: 5.0em"><dt>--remote
+<dt><b>-r</b>
+<dd style="margin-left: 5.0em"><dt><b>--remote</b>
 <dd style="margin-left: 5.0em">True if the service is not local to this computer.
-<dt>-s
-<dd style="margin-left: 5.0em"><dt>--print-name
-<dd style="margin-left: 5.0em">Prints the service instance name if the result of previous expressions is true. The result is always true.
-<dt>--true
+<dt><b>-s</b>
+<dd style="margin-left: 5.0em"><dt><b>--print-name</b>
+<dd style="margin-left: 5.0em">Prints the service instance name if the result of previous expressions is true.
+The result is always true.
+<dt><b>--true</b>
 <dd style="margin-left: 5.0em">Always true.
-<dt>-t key
-<dd style="margin-left: 5.0em"><dt>--txt key
+<dt><b>-t </b><i>key</i>
+<dd style="margin-left: 5.0em"><dt><b>--txt </b><i>key</i>
 <dd style="margin-left: 5.0em">True if the TXT record contains the named key.
-<dt>--txt-<i>key</i> regex
-<dd style="margin-left: 5.0em">True if the TXT record contains the named key and matches the given regular
-expression.
-<dt>-u regex
-<dd style="margin-left: 5.0em"><dt>--uri regex
+<dt><b>--txt-</b><i>key regex</i>
+<dd style="margin-left: 5.0em">True if the TXT record contains the named key and matches the given regular expression.
+<dt><b>-u </b><i>regex</i>
+<dd style="margin-left: 5.0em"><dt><b>--uri </b><i>regex</i>
 <dd style="margin-left: 5.0em">True if the URI matches the given regular expression.
-<dt>-x utility [argument ...] ;
-<dd style="margin-left: 5.0em"><dt>--exec utility [argument ...] ;
-<dd style="margin-left: 5.0em">Executes the specified program if the current result is true. "{foo}" arguments are replaced with the corresponding value - see SUBSTITUTIONS below.
+<dt><b>-x </b><i>utility </i>[ <i>argument </i>... ] <b>;</b>
+<dd style="margin-left: 5.0em"><dt><b>--exec </b><i>utility </i>[ <i>argument </i>... ] <b>;</b>
+<dd style="margin-left: 5.0em">Executes the specified program if the current result is true.
+"{foo}" arguments are replaced with the corresponding value - see SUBSTITUTIONS below.
 </dl>
 <p>Expressions may also contain modifiers:
 <dl class="man">
-<dt>( expression )
+<dt><b>( </b><i>expression </i><b>)</b>
 <dd style="margin-left: 5.0em">Group the result of expressions.
-<dt>! expression
-<dd style="margin-left: 5.0em"><dt>--not expression
+<dt><b>! </b><i>expression</i>
+<dd style="margin-left: 5.0em"><dt><b>--not </b><i>expression</i>
 <dd style="margin-left: 5.0em">Unary NOT of the expression.
-<dt>expression expression
-<dd style="margin-left: 5.0em"><dt>expression --and expression
+<dt><i>expression expression</i>
+<dd style="margin-left: 5.0em"><dt><i>expression </i><b>--and </b><i>expression</i>
 <dd style="margin-left: 5.0em">Logical AND of expressions.
-<dt>expression --or expression
+<dt><i>expression </i><b>--or </b><i>expression</i>
 <dd style="margin-left: 5.0em">Logical OR of expressions.
-
 </dl>
-<h2 class="title"><a name="SUBSTITUTIONS">Substitutions</a></h2>
-The substitutions for "{foo}" in -e and --exec are:
+<h3><a name="SUBSTITUTIONS">Substitutions</a></h3>
+The substitutions for "{foo}" in <i>-e</i> and <i>--exec</i> are:
 <dl class="man">
-<dt>{}
-<dd style="margin-left: 5.0em">URI
-<dt>{service_domain}
+<dt><b>{service_domain}</b>
 <dd style="margin-left: 5.0em">Domain name, e.g., "example.com.", "local.", etc.
-<dt>{service_hostname}
+<dt><b>{service_hostname}</b>
 <dd style="margin-left: 5.0em">Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
-<dt>{service_name}
+<dt><b>{service_name}</b>
 <dd style="margin-left: 5.0em">Service instance name, e.g., "My Fine Printer".
-<dt>{service_port}
+<dt><b>{service_port}</b>
 <dd style="margin-left: 5.0em">Port number for server, typically 631 for IPP and 80 for HTTP.
-<dt>{service_regtype}
+<dt><b>{service_regtype}</b>
 <dd style="margin-left: 5.0em">DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
-<dt>{service_scheme}
+<dt><b>{service_scheme}</b>
 <dd style="margin-left: 5.0em">URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
-<dt>{service_uri}
+<dt><b>{}</b>
+<dd style="margin-left: 5.0em"><dt><b>{service_uri}</b>
 <dd style="margin-left: 5.0em">URI for service, e.g., "ipp://printer.local./ipp/print", "<a href="http://printer.local./"">http://printer.local./"</a>, etc.
-<dt>{txt_<i>key</i>}
+<dt><b>{txt_</b><i>key</i><b>}</b>
 <dd style="margin-left: 5.0em">Value of TXT record <i>key</i> (lowercase).
-
 </dl>
-<h2 class="title"><a name="ENVIRONMENT_VARIABLES">Environment Variables</a></h2>
-When executing a program, <i>ippfind</i> sets the following environment variables for the matching service registration:
+<h2 class="title"><a name="OPTIONS">Options</a></h2>
+<b>ippfindR supports the following options:
+</b><dl class="man">
+<dt><b>--help</b>
+<dd style="margin-left: 5.0em">Show program help.
+<dt><b>--version</b>
+<dd style="margin-left: 5.0em">Show program version.
+<dt><b>-4</b>
+<dd style="margin-left: 5.0em">Use IPv4 when listing.
+<dt><b>-6</b>
+<dd style="margin-left: 5.0em">Use IPv6 when listing.
+<dt><b>-T </b><i>seconds</i>
+<dd style="margin-left: 5.0em">Specify find timeout in seconds.
+If 1 or less, <b>ippfind</b> stops as soon as it thinks it has found everything.
+The default timeout is 1 second.
+<dt><b>-V </b><i>version</i>
+<dd style="margin-left: 5.0em">Specifies the IPP version when listing.
+Supported values are "1.1", "2.0", "2.1", and "2.2".
+</dl>
+<h2 class="title"><a name="EXIT_STATUS">Exit Status</a></h2>
+<b>ippfind</b> returns 0 if the result for all processed expressions is true, 1 if the result of any processed expression is false, 2 if browsing or any query or resolution failed, 3 if an undefined option or invalid expression was specified, and 4 if it ran out of memory.
+<h2 class="title"><a name="ENVIRONMENT">Environment</a></h2>
+When executing a program, <b>ippfind</b> sets the following environment variables for the matching service registration:
 <dl class="man">
-<dt>IPPFIND_SERVICE_DOMAIN
+<dt><b>IPPFIND_SERVICE_DOMAIN</b>
 <dd style="margin-left: 5.0em">Domain name, e.g., "example.com.", "local.", etc.
-<dt>IPPFIND_SERVICE_HOSTNAME
+<dt><b>IPPFIND_SERVICE_HOSTNAME</b>
 <dd style="margin-left: 5.0em">Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
-<dt>IPPFIND_SERVICE_NAME
+<dt><b>IPPFIND_SERVICE_NAME</b>
 <dd style="margin-left: 5.0em">Service instance name, e.g., "My Fine Printer".
-<dt>IPPFIND_SERVICE_PORT
+<dt><b>IPPFIND_SERVICE_PORT</b>
 <dd style="margin-left: 5.0em">Port number for server, typically 631 for IPP and 80 for HTTP.
-<dt>IPPFIND_SERVICE_REGTYPE
+<dt><b>IPPFIND_SERVICE_REGTYPE</b>
 <dd style="margin-left: 5.0em">DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
-<dt>IPPFIND_SERVICE_SCHEME
+<dt><b>IPPFIND_SERVICE_SCHEME</b>
 <dd style="margin-left: 5.0em">URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
-<dt>IPPFIND_SERVICE_URI
+<dt><b>IPPFIND_SERVICE_URI</b>
 <dd style="margin-left: 5.0em">URI for service, e.g., "ipp://printer.local./ipp/print", "<a href="http://printer.local./"">http://printer.local./"</a>, etc.
-<dt>IPPFIND_TXT_<i>KEY</i>
+<dt><b>IPPFIND_TXT_fIKEYfR</b>
 <dd style="margin-left: 5.0em">Values of TXT record <i>KEY</i> (uppercase).
-
 </dl>
-<h2 class="title"><a name="EXIT_CODES">Exit Codes</a></h2>
-<i>ippfind</i> returns 0 if the result for all processed expressions is true, 1 if the result of any processed expression is false, 2 if browsing or any query or resolution failed, 3 if an undefined option or invalid expression was specified, and 4 if it ran out of memory.
+<h2 class="title"><a name="EXAMPLES">Examples</a></h2>
+To show the status of all registered IPP printers on your network, run:
+<pre class="man">
 
-<h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
-<i>ipptool(1)</i>
+    ippfind --ls
 
+</pre>
+Similarly, to send a PostScript test page to every PostScript printer, run:
+<pre class="man">
+
+    ippfind --txt-pdl application/postscript --exec ipptool
+      -f onepage-letter.ps '{}' print-job.test \;
+</pre>
+<h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
+<a href="man-ipptool.html?TOPIC=Man+Pages"><b>ipptool</b>(1)</a>
 <h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
-Copyright 2013 by Apple Inc.
+Copyright &copy; 2013-2014 by Apple Inc.
 
 </body>
 </html>
index 3b0b013ef0f760640706f7b4abe3a4873c4f7732..d9a94ed1ca5333ac3bfda4e24aeb71f137d771af 100644 (file)
@@ -20,50 +20,25 @@ ippfind \- find internet printing protocol printers
 .I options
 ] \fIregtype\fR[\fB,\fIsubtype\fR][\fB.\fIdomain\fB.\fR] ... [
 .I expression
-... ]
+ ... ]
+.br
 .B ippfind
 [
 .I options
-] name[.regtype[.domain.]] ... [
-.I expression ...
-]
+] \fIname\fR[\fB.\fIregtype\fR[\fB.\fIdomain\fB.\fR]] ... [
+.I expression
+ ... ]
+.br
 .B ippfind
---help
+.B \-\-help
+.br
 .B ippfind
---version
-.SH OPTIONS
-.TP 5
---help
-Show program help
-.TP 5
---version
-Show program version
-.TP 5
--4
-Use IPv4 when listing
-.TP 5
--6
-Use IPv6 when listing
-.TP 5
--T seconds
-Specify find timeout in seconds. If 1 or less, \fIippfind\fR stops as soon as it thinks it has found everything. The default is 1 second.
-.TP 5
--V version
-Specifies the IPP version when listing. Supported values are 1.1, 2.0, 2.1, and 2.2.
-
+.B \-\-version
 .SH DESCRIPTION
-\fIippfind\fR finds services registered with a DNS server or available through local devices. Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands. For example, to show the status of all registered IPP printers on your network, run:
-.nf
-    ippfind --ls
-.fi
-Similarly, to send a PostScript test page to every PostScript printer, run:
-.nf
-    ippfind --txt-pdl application/postscript --exec ipptool \\
-        -f onepage-letter.ps '{}' print-job.test \\;
-.fi
-
-.SH REGISTRATION TYPES
-\fIippfind\fR supports the following registration types:
+\fBippfind\fR finds services registered with a DNS server or available through local devices.
+Its primary purpose is to find IPP printers and show their URIs, show their current status, or run commands.
+.SS REGISTRATION TYPES
+\fBippfind\fR supports the following registration types:
 .TP 5
 _http._tcp
 HyperText Transport Protocol (HTTP, RFC 2616)
@@ -79,169 +54,208 @@ Secure Internet Printing Protocol (IPPS, draft)
 .TP 5
 _printer._tcp
 Line Printer Daemon (LPD, RFC 1179)
-
-.SH EXPRESSIONS
-\fIippfind\fR supports expressions much like the \fIfind(1)\fR utility. However, unlike \fIfind\fR, \fIippfind\fR uses POSIX regular expressions instead of shell filename matching patterns. If --exec, -l, --ls, -p, --print, --print-name, -q, --quiet, -s, or -x is not specified, \fIippfind\fR adds --print to print the service URI of anything it finds. The following expressions are supported:
-.TP 5
--d regex
-.TP 5
---domain regex
+.SS EXPRESSIONS
+\fBippfind\fR supports expressions much like the
+.BR find (1)
+utility.
+However, unlike
+.BR find (1),
+\fBippfind\fR uses POSIX regular expressions instead of shell filename matching patterns.
+If \fI\-\-exec\fR, \fI\-l\fR, \fI\-\-ls\fR, \fI\-p\fR, \fI\-\-print\fR, \fI\-\-print\-name\fR, \fI\-q\fR, \fI\-\-quiet\fR, \fI\-s\fR, or \fI\-x\fR is not specified, \fBippfind\fR adds \fI\-\-print\fR to print the service URI of anything it finds.
+The following expressions are supported:
+.TP 5
+\fB\-d \fIregex\fR
+.TP 5
+\fB\-\-domain \fIregex\fR
 True if the domain matches the given regular expression.
 .TP 5
---false
+.B \-\-false
 Always false.
 .TP 5
--h regex
+\fB\-h \fIregex\fR
 .TP 5
---host regex
+\fB\-\-host \fIregex\fR
 True is the hostname matches the given regular expression.
 .TP 5
--l
+.B \-l
 .TP 5
---ls
-Lists attributes returned by Get-Printer-Attributes for IPP printers and traditional \fIfind\fR "-ls" output for HTTP URLs. The result is true if the URI is accessible, false otherwise.
+.B \-\-ls
+Lists attributes returned by Get-Printer-Attributes for IPP printers and traditional \fIfind\fR "-ls" output for HTTP URLs.
+The result is true if the URI is accessible, false otherwise.
 .TP 5
---local
+.B \-\-local
 True if the service is local to this computer.
 .TP 5
--n regex
+\fB\-n \fIregex\fR
 .TP 5
---name regex
+\fB\-\-name \fIregex\fR
 True if the service instance name matches the given regular expression.
 .TP 5
---path regex
+\fB\-\-path \fIregex\fR
 True if the URI resource path matches the given regular expression.
 .TP 5
--P number[-number]
+\fB\-P \fInumber\fR[\fB-\fInumber\fR]
 .TP 5
---port number[-number]
+\fB\-\-port \fInumber\fR[\fB-\fInumber\fR]
 True if the port matches the given number or range.
 .TP 5
--p
+.B \-p
 .TP 5
---print
-Prints the URI if the result of previous expressions is true. The result is always true.
+.B \-\-print
+Prints the URI if the result of previous expressions is true.
+The result is always true.
 .TP 5
--q
+.B \-q
 .TP 5
---quiet
+.B \-\-quiet
 Quiet mode - just returns the exit codes below.
 .TP 5
--r
+.B \-r
 .TP 5
---remote
+.B \-\-remote
 True if the service is not local to this computer.
 .TP 5
--s
+.B \-s
 .TP 5
---print-name
-Prints the service instance name if the result of previous expressions is true. The result is always true.
+.B \-\-print\-name
+Prints the service instance name if the result of previous expressions is true.
+The result is always true.
 .TP 5
---true
+.B \-\-true
 Always true.
 .TP 5
--t key
+\fB\-t \fIkey\fR
 .TP 5
---txt key
+\fB\-\-txt \fIkey\fR
 True if the TXT record contains the named key.
 .TP 5
---txt-\fIkey\fR regex
-True if the TXT record contains the named key and matches the given regular
-expression.
+\fB\-\-txt\-\fIkey regex\fR
+True if the TXT record contains the named key and matches the given regular expression.
 .TP 5
--u regex
+\fB\-u \fIregex\fR
 .TP 5
---uri regex
+\fB\-\-uri \fIregex\fR
 True if the URI matches the given regular expression.
 .TP 5
--x utility [argument ...] ;
+\fB\-x \fIutility \fR[ \fIargument \fR... ] \fB;\fR
 .TP 5
---exec utility [argument ...] ;
-Executes the specified program if the current result is true. "{foo}" arguments are replaced with the corresponding value - see SUBSTITUTIONS below.
+\fB\-\-exec \fIutility \fR[ \fIargument \fR... ] \fB;\fR
+Executes the specified program if the current result is true.
+"{foo}" arguments are replaced with the corresponding value - see SUBSTITUTIONS below.
 .PP
 Expressions may also contain modifiers:
 .TP 5
-( expression )
+\fB( \fIexpression \fB)\fR
 Group the result of expressions.
 .TP 5
-! expression
+\fB! \fIexpression\fR
 .TP 5
---not expression
+\fB\-\-not \fIexpression\fR
 Unary NOT of the expression.
 .TP 5
-expression expression
+\fIexpression expression\fR
 .TP 5
-expression --and expression
+\fIexpression \fB\-\-and \fIexpression\fR
 Logical AND of expressions.
 .TP 5
-expression --or expression
+\fIexpression \fB\-\-or \fIexpression\fR
 Logical OR of expressions.
-
-.SH SUBSTITUTIONS
-The substitutions for "{foo}" in -e and --exec are:
-.TP 5
-{}
-URI
+.SS SUBSTITUTIONS
+The substitutions for "{foo}" in \fI\-e\fR and \fI\-\-exec\fR are:
 .TP 5
-{service_domain}
+.B {service_domain}
 Domain name, e.g., "example.com.", "local.", etc.
 .TP 5
-{service_hostname}
+.B {service_hostname}
 Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
 .TP 5
-{service_name}
+.B {service_name}
 Service instance name, e.g., "My Fine Printer".
 .TP 5
-{service_port}
+.B {service_port}
 Port number for server, typically 631 for IPP and 80 for HTTP.
 .TP 5
-{service_regtype}
+.B {service_regtype}
 DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
 .TP 5
-{service_scheme}
+.B {service_scheme}
 URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
 .TP 5
-{service_uri}
+.B {}
+.TP 5
+.B {service_uri}
 URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc.
 .TP 5
-{txt_\fIkey\fR}
+\fB{txt_\fIkey\fB}\fR
 Value of TXT record \fIkey\fR (lowercase).
-
-.SH ENVIRONMENT VARIABLES
-When executing a program, \fIippfind\fR sets the following environment variables for the matching service registration:
+.SH OPTIONS
+\fBippfind\R supports the following options:
+.TP 5
+.B \-\-help
+Show program help.
+.TP 5
+.B \-\-version
+Show program version.
+.TP 5
+.B \-4
+Use IPv4 when listing.
+.TP 5
+.B \-6
+Use IPv6 when listing.
 .TP 5
-IPPFIND_SERVICE_DOMAIN
+\fB\-T \fIseconds\fR
+Specify find timeout in seconds.
+If 1 or less, \fBippfind\fR stops as soon as it thinks it has found everything.
+The default timeout is 1 second.
+.TP 5
+\fB\-V \fIversion\fR
+Specifies the IPP version when listing.
+Supported values are "1.1", "2.0", "2.1", and "2.2".
+.SH EXIT STATUS
+\fBippfind\fR returns 0 if the result for all processed expressions is true, 1 if the result of any processed expression is false, 2 if browsing or any query or resolution failed, 3 if an undefined option or invalid expression was specified, and 4 if it ran out of memory.
+.SH ENVIRONMENT
+When executing a program, \fBippfind\fR sets the following environment variables for the matching service registration:
+.TP 5
+.B IPPFIND_SERVICE_DOMAIN
 Domain name, e.g., "example.com.", "local.", etc.
 .TP 5
-IPPFIND_SERVICE_HOSTNAME
+.B IPPFIND_SERVICE_HOSTNAME
 Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
 .TP 5
-IPPFIND_SERVICE_NAME
+.B IPPFIND_SERVICE_NAME
 Service instance name, e.g., "My Fine Printer".
 .TP 5
-IPPFIND_SERVICE_PORT
+.B IPPFIND_SERVICE_PORT
 Port number for server, typically 631 for IPP and 80 for HTTP.
 .TP 5
-IPPFIND_SERVICE_REGTYPE
+.B IPPFIND_SERVICE_REGTYPE
 DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
 .TP 5
-IPPFIND_SERVICE_SCHEME
+.B IPPFIND_SERVICE_SCHEME
 URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
 .TP 5
-IPPFIND_SERVICE_URI
+.B IPPFIND_SERVICE_URI
 URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc.
 .TP 5
-IPPFIND_TXT_\fIKEY\fR
+.B IPPFIND_TXT_\fIKEY\fR
 Values of TXT record \fIKEY\fR (uppercase).
+.SH EXAMPLES
+To show the status of all registered IPP printers on your network, run:
+.nf
 
-.SH EXIT CODES
-\fIippfind\fR returns 0 if the result for all processed expressions is true, 1 if the result of any processed expression is false, 2 if browsing or any query or resolution failed, 3 if an undefined option or invalid expression was specified, and 4 if it ran out of memory.
+    ippfind \-\-ls
 
-.SH SEE ALSO
-\fIipptool(1)\fR
+.fi
+Similarly, to send a PostScript test page to every PostScript printer, run:
+.nf
 
+    ippfind \-\-txt\-pdl application/postscript \-\-exec ipptool
+      \-f onepage\-letter.ps '{}' print\-job.test \\;
+.fi
+.SH SEE ALSO
+.BR ipptool (1)
 .SH COPYRIGHT
-Copyright 2013 by Apple Inc.
+Copyright \[co] 2013-2014 by Apple Inc.
 .\"
 .\" End of "$Id$".
 .\"