[ale] who is the fastest bash scripter?
Michael D. Hirsch
mhirsch at nubridges.com
Tue Feb 25 10:39:20 EST 2003
On Monday 24 February 2003 06:00 pm, David S. Jackson wrote:
> 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.
This doesn't sound right to me. Since grep is reading from stdin in these
scripts it can't possibly know the name of the file.
Michael
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list