aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitac1f4bba20bbd88bf8b19eff33442086be7803f3 (patch)
treeb47958f3bf2d4c05286f6e7efd2669cf18b24acc
parent6d805c41a1ebaced20ab413c14db4fa70c044f2c (diff)
downloadmandoc-ac1f4bba20bbd88bf8b19eff33442086be7803f3.tar.gz
mandoc-ac1f4bba20bbd88bf8b19eff33442086be7803f3.tar.zst
mandoc-ac1f4bba20bbd88bf8b19eff33442086be7803f3.zip
add example to apropos.1 to list all manuals in a given section;
patch from ians@
-rw-r--r--apropos.18
1 files changed, 6 insertions, 2 deletions
diff --git a/apropos.1 b/apropos.1
index c85de86d..9129ae31 100644
--- a/apropos.1
+++ b/apropos.1
@@ -1,4 +1,4 @@
-.\" $Id: apropos.1,v 1.50 2020/07/20 16:57:29 schwarze Exp $
+.\" $Id: apropos.1,v 1.51 2020/10/01 22:50:00 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011,2012,2014,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: July 20 2020 $
+.Dd $Mdocdate: October 1 2020 $
.Dt APROPOS 1
.Os
.Sh NAME
@@ -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