summaryrefslogtreecommitdiffstats
path: root/apropos.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-10-01 22:50:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-10-01 22:50:00 +0000
commite99acc01f6900f349275b5c4f748029f96505109 (patch)
treee2882e9d2caa91f7a0c723f8b814bae649f9671d /apropos.1
parent2d14351d07ed74373585b7cf8b4146d5b5c91ccb (diff)
downloadmandoc-e99acc01f6900f349275b5c4f748029f96505109.tar.gz
add example to apropos.1 to list all manuals in a given section;
patch from ians@
Diffstat (limited to 'apropos.1')
-rw-r--r--apropos.16
1 files changed, 5 insertions, 1 deletions
diff --git a/apropos.1 b/apropos.1
index c5c90d30..f085f5b0 100644
--- a/apropos.1
+++ b/apropos.1
@@ -1,4 +1,4 @@
-.\" $Id$
+.\" $Id$
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011,2012,2014,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -403,6 +403,10 @@ Search in names and descriptions using a case-sensitive regular expression:
.Pp
.Dl $ apropos \(aq\(tiset.?[ug]id\(aq
.Pp
+Search for all manual pages in a given section:
+.Pp
+.Dl $ apropos \-s 9 \&.
+.Pp
Search for manuals in the library section mentioning both the
.Qq optind
and the