version 1.6, 2011/11/20 16:29:50 |
version 1.8, 2011/11/23 10:09:30 |
|
|
.Nd search manual page databases |
.Nd search manual page databases |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm |
.Nm |
|
.Op Fl M Ar manpath |
.Op Fl m Ar manpath |
.Op Fl m Ar manpath |
.Op Fl S Ar arch |
.Op Fl S Ar arch |
.Op Fl s Ar section |
.Op Fl s Ar section |
|
|
The |
The |
.Nm |
.Nm |
utility queries manual page databases generated by |
utility queries manual page databases generated by |
.Xr mandocdb 8 , |
.Xr mandocdb 8 , |
evaluating on |
evaluating on |
.Ar expression |
.Ar expression |
for each file in each database. |
for each file in each database. |
Its arguments are as follows: |
Its arguments are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
.It Fl M Ar manpath |
|
Use the colon-separated path instead of the default list of paths |
|
searched for |
|
.Xr mandocdb 8 |
|
databases. |
|
Invalid paths, or paths without manual databases, are ignored. |
.It Fl m Ar manpath |
.It Fl m Ar manpath |
Append the colon-separated paths to the default list of paths searched |
Append the colon-separated paths to the list of paths searched |
for |
for |
.Xr mandocdb 8 |
.Xr mandocdb 8 |
databases. |
databases. |
|
|
operator has precedence over |
operator has precedence over |
.Fl o |
.Fl o |
and both are evaluated left-to-right. |
and both are evaluated left-to-right. |
.Pp |
|
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It \&( Ar expr No \&) |
.It \&( Ar expr No \&) |
True if the subexpression |
True if the subexpression |
Line 112 is evaluated case-insensitively. |
|
Line 118 is evaluated case-insensitively. |
|
.Pp |
.Pp |
By default, |
By default, |
.Nm |
.Nm |
searches for a |
searches for |
.Xr mandocdb 8 |
.Xr mandocdb 8 |
database in the current working directory and |
databases in the default paths stipulated by |
|
.Xr man 1 , |
parses terms as case-sensitive regular expressions |
parses terms as case-sensitive regular expressions |
.Pq the Li \&~ operator |
.Pq the Li \&~ operator |
over manual names and descriptions |
over manual names and descriptions |
Line 150 If an architecture is specified in the output, use |
|
Line 157 If an architecture is specified in the output, use |
|
Comma-separated paths overriding the default list of paths searched for |
Comma-separated paths overriding the default list of paths searched for |
manual databases. |
manual databases. |
Invalid paths, or paths without manual databases, are ignored. |
Invalid paths, or paths without manual databases, are ignored. |
|
Takes precedence over |
|
.Fl M . |
.El |
.El |
.\" .Sh FILES |
.\" .Sh FILES |
.Sh EXIT STATUS |
.Sh EXIT STATUS |