[NTLUG:Discuss] Strings in BASH, an easier way?
Robert Citek
robert.citek at gmail.com
Wed Dec 24 09:36:35 CST 2008
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 .
More information about the Discuss
mailing list