diff options
author | ians <ians@cvs.openbsd.org> | 2020-10-01 22:30:15 +0000 |
---|---|---|
committer | ians <ians@cvs.openbsd.org> | 2020-10-01 22:30:15 +0000 |
commit | c5f76526cfbd662451074dc133aec8abb3778aeb (patch) | |
tree | 4b1e9134e8e51bcc85ee5c5695d7759498dae714 | |
parent | 195640a220ff57752bc16eeb5e76bd42903172e8 (diff) |
add example to apropos.1 to list all manuals in a given section
ok schwarze@
-rw-r--r-- | usr.bin/mandoc/apropos.1 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/apropos.1 b/usr.bin/mandoc/apropos.1 index c81add156e6..4263f22ac03 100644 --- a/usr.bin/mandoc/apropos.1 +++ b/usr.bin/mandoc/apropos.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apropos.1,v 1.43 2020/07/20 14:52:12 schwarze Exp $ +.\" $OpenBSD: apropos.1,v 1.44 2020/10/01 22:30:14 ians 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,9 @@ 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 . Search for manuals in the library section mentioning both the .Qq optind and the |