[H-GEN] Shell script problem.
A Bruce In The Land Of The Bruces
brucec at humbug.org.au
Thu Jun 4 21:42:06 EDT 1998
On Fri, 5 Jun 1998, Byron Ellacott wrote:
> On Fri, Jun 05, 1998 at 11:30:12AM +1000, A Bruce In The Land Of The Bruces wrote:
> > lowest="`cat $input | sort -nk 2 | grep $lowestexp | head -n 1`"
> in the interests of optimization, the grep should be done first, so as
> to not sort irrelevant data
True. However invoking another shell in the middle is probably worse ;)
--==--
Bruce.
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe
More information about the General
mailing list