1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/usr.bin/man
Fernando Apesteguía 1594084f3f man(1): Add full search (-K) flag
This flag allows a full text search on man pages. Although this is a last resort
option, it can be useful to pin point a certain man page.

It can be used with -S to narrow the search.

Unlike the Linux version, the search takes place in the rendered text so it
avoids false-positives when the text is found in comments in the source files.

It relies on `grep(1)` and `mandoc(1)` to do its job.

Add flag documentation and EXAMPLES to the manual page (bump .Dd).

Usage example:

man -w -K '\<arm\>' -S 1:8

Reviewed By: ceri, emaste, pauamma_gundo.com
Approved by: manpages (bcr@), debdrup@
Differential Revision: https://reviews.freebsd.org/D30984
2022-01-26 12:24:20 +01:00
..
Makefile Remove the WITHOUT_MANDOCDB option 2017-03-11 06:51:21 +00:00
Makefile.depend
man.1 man(1): Add full search (-K) flag 2022-01-26 12:24:20 +01:00
man.conf.5
man.sh man(1): Add full search (-K) flag 2022-01-26 12:24:20 +01:00
manpath.1 - Remove separate handling of /bin and /usr/bin in manpath. They are no 2017-03-12 10:56:19 +00:00