1 .\" $Id: apropos.1,v 1.9 2011/11/26 22:38:11 schwarze Exp $
3 .\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: November 26 2011 $
22 .Nd search manual page databases
33 utility queries manual page databases generated by
37 for each file in each database.
38 Its arguments are as follows:
41 Use the colon-separated path instead of the default list of paths
45 Invalid paths, or paths without manual databases, are ignored.
47 Prepend the colon-separated paths to the list of paths searched
51 Invalid paths, or paths without manual databases, are ignored.
53 Search only for a particular architecture.
55 Search only for a manual section.
58 for a listing of manual sections.
63 consists of search terms joined by logical operators
71 operator has precedence over
73 and both are evaluated left-to-right.
75 .It \&( Ar expr No \&)
76 True if the subexpression
79 .It Ar expr1 Fl a Ar expr2
86 .It Ar expr1 Oo Fl o Oc Ar expr2
91 evaluate to true (logical
98 .Li [key[,key]*(=~)]?val ,
108 evaluates a substring, while
110 evaluates a regular expression.
116 is evaluated case-insensitively.
123 databases in the default paths stipulated by
125 parses terms as case-sensitive regular expressions
126 .Pq the Li \&~ operator
127 over manual names and descriptions
128 .Pq the Li \&Nm No and Li \&Nd No macros .
129 Multiple terms imply pairwise
131 Results are sorted by manual title, with output formatted as
133 .D1 title(sec) \- description
137 is the manual's title (note multiple manual names may exist for one
140 is the manual section, and
142 is the manual's short description.
143 If an architecture is specified for the manual, it is displayed as
145 .D1 title(cat/arch) \- description
147 Resulting manuals may be accessed as
149 .Dl $ man \-s sec title
151 If an architecture is specified in the output, use
153 .Dl $ man \-s sec \-S arch title
157 Colon-separated paths overriding the default list of paths searched for
159 Invalid paths, or paths without manual databases, are ignored.
169 within the manual name and description:
173 Two variants of searching for
178 within manual names and descriptions:
180 .Dl $ apropos mdoc roff man
181 .Dl $ apropos mdoc \-o roff \-o man
187 as variable names in the library category:
189 .Dl $ apropos \-s 3 \(dqVa~^optind$\(dq -a \(dqVa~^optarg$\(dq
191 Search for all manuals referencing
195 .Dl $ apropos \-\- \-i posix
203 utility was written by
204 .An Kristaps Dzonsons ,
205 .Mt kristaps@bsd.lv .