[ale] who is the fastest bash scripter?

David S. Jackson dsj at sylvester.dsj.net
Mon Feb 24 18:00:51 EST 2003


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






More information about the Ale mailing list