Subject: Re: bin/5231: makewhatis does not deal with multiple MANDIR's
To: Geoff Wing <gcw@pobox.com>
From: Simon Burge <simonb@telstra.com.au>
List: netbsd-bugs
Date: 03/31/1998 12:14:22
On Mon, 30 Mar 1998 22:31:53 +1000 Geoff Wing wrote:
> :MANX=`cat /etc/man.conf | grep '^_whatdb' | awk '{print $2}' | xargs`
>
> MANX=`grep '^_whatdb' < /etc/man.conf | awk '{print $2}'`
>
> Why cat? Why xargs?
Hmm, one of my pet peeves about shell scripts (at least here at work
where I have to review a reasonable number of them) is using extra
commands where not necessary. How about:
awk '/^_whatdb/ { print $2 }' /etc/man.conf
Simon.