<div dir="auto">to be clear, i actually just meant a quick way to search the toybox help --- a way to ask toybox "which of your commands have something to do with $x". not an actual "grep the man pages". (which i don't think *needs* a precomputed database in 2024, even if it did in 1994. tbh, i'm pretty sure aix didn't have a database in 1994 --- it was impossibly slow.)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 18, 2024, 16:10 Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3/17/24 15:10, Ivo van Poorten wrote:<br>
>> In THEORY each man page has a "name" section with a one line<br>
>> description, and there should be a way to emit them all, but if<br>
>> there's a standard way to do it without writing a shell script I<br>
>> dunno what it is. I generally just do<br>
> <br>
> It looks like apropos is just man -k.<br>
...<br>
> Lots of not so useful output though:<br>
> <br>
> $ apropos ls | wc -l<br>
> 548<br>
> $ man -k ls | wc -l<br>
> 548<br>
<br>
And "man -k ." lists them all. Good to know.<br>
<br>
$ man -k . | wc -l<br>
8645<br>
<br>
Yeah, lots of debris, but that's a distro issue. No obvious way to limit it by<br>
section either...<br>
<br>
$ man -k . | sort -t'(' -k2,2n | less<br>
<br>
Eh, sort of reasonable-ish? Assuming you care about allcm, bibdoiadd and<br>
blueman-report...<br>
<br>
Thanks,<br>
<br>
Rob<br>
_______________________________________________<br>
Toybox mailing list<br>
<a href="mailto:Toybox@lists.landley.net" target="_blank" rel="noreferrer">Toybox@lists.landley.net</a><br>
<a href="http://lists.landley.net/listinfo.cgi/toybox-landley.net" rel="noreferrer noreferrer" target="_blank">http://lists.landley.net/listinfo.cgi/toybox-landley.net</a><br>
</blockquote></div>