[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] who is the fastest bash scripter?
- Subject: [ale] who is the fastest bash scripter?
- From: dsj at sylvester.dsj.net (David S. Jackson)
- Date: Mon, 24 Feb 2003 18:00:51 -0500
On Mon, Feb 24, 2003 at 03:44:37PM -0500 Jason Vinson <jason.vinson at mindspring.com> wrote:
> I think the prize goes to mr. Jason Day.
>
> His script was so much faster (see the subject) than anyone elses ;)
>
> thanks again,
You know, you're calling an extra echo command and doing a conditional
check (&&) when all you need to do is tell grep to include the filename
in its printout. (See the -H switch in man grep.) No need to call any
other utilities or spawn any other processes.
--
David S. Jackson dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
There's no easy quick way out, we're gonna have to
live through our whole lives, win, lose, or draw.
-- Walt Kelly
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale