1 .\" $Id: apropos.1,v 1.6 2011/11/20 16:29:50 kristaps 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 20 2011 $
22 .Nd search manual page databases
32 utility queries manual page databases generated by
36 for each file in each database.
37 Its arguments are as follows:
40 Append the colon-separated paths to the default list of paths searched
44 Invalid paths, or paths without manual databases, are ignored.
46 Search only for a particular architecture.
48 Search only for a manual section.
51 for a listing of manual sections.
56 consists of search terms joined by logical operators
64 operator has precedence over
66 and both are evaluated left-to-right.
69 .It \&( Ar expr No \&)
70 True if the subexpression
73 .It Ar expr1 Fl a Ar expr2
80 .It Ar expr1 Oo Fl o Oc Ar expr2
85 evaluate to true (logical
92 .Li [key[,key]*(=~)]?val ,
102 evaluates a substring, while
104 evaluates a regular expression.
110 is evaluated case-insensitively.
117 database in the current working directory and
118 parses terms as case-sensitive regular expressions
119 .Pq the Li \&~ operator
120 over manual names and descriptions
121 .Pq the Li \&Nm No and Li \&Nd No macros .
122 Multiple terms imply pairwise
124 Results are sorted by manual title, with output formatted as
126 .D1 title(sec) \- description
130 is the manual's title (note multiple manual names may exist for one
133 is the manual section, and
135 is the manual's short description.
136 If an architecture is specified for the manual, it is displayed as
138 .D1 title(cat/arch) \- description
140 Resulting manuals may be accessed as
142 .Dl $ man \-s sec title
144 If an architecture is specified in the output, use
146 .Dl $ man \-s sec \-S arch title
150 Comma-separated paths overriding the default list of paths searched for
152 Invalid paths, or paths without manual databases, are ignored.
160 within the manual name and description:
164 Two variants of searching for
169 within manual names and descriptions:
171 .Dl $ apropos mdoc roff man
172 .Dl $ apropos mdoc \-o roff \-o man
178 as variable names in the library category:
180 .Dl $ apropos \-s 3 \(dqVa~^optind$\(dq -a \(dqVa~^optarg$\(dq
182 Search for all manuals referencing
186 .Dl $ apropos \-\- \-i posix
194 utility was written by
195 .An Kristaps Dzonsons ,
196 .Mt kristaps@bsd.lv .