[NTLUG:Discuss] Strings in BASH, an easier way?
Leroy Tennison
leroy_tennison at prodigy.net
Wed Dec 24 13:00:13 CST 2008
Robert Citek wrote:
> Do they give the same results?
>
> $ whatis -r . | sort | uniq | wc -l
> 4728
>
> $ man -k . | sort | uniq | wc -l
> 4728
>
> $ for i in $(echo $PATH | cut -d: -f1- --output-delimiter=" "); do
> for j in $(ls -1 $i) ; do
> apropos $j
> done
> done | sort | uniq | wc -l
> apropos: fatal: regex `[': Invalid regular expression
> 4688
>
>
> On Wed, Dec 24, 2008 at 8:59 AM, terry <trryhend at gmail.com> wrote:
>> How about?:
>>
>> man -k .
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
I suspect not because apropos returns a number of "nothing appropriate"
responses. I don't know about your machine but the apropos approach is
taking quite a bit of resources on my PC.
More information about the Discuss
mailing list