On Fri, Sep 21, 2007 at 03:36:12PM +0100, martin f krafft wrote:
> also sprach Hanspeter Kunz <[EMAIL PROTECTED]> [2007.09.21.1528 +0100]:
> > well, I do not know the implementation of egrep. If it is
> > intelligent it simply discards constructions like .*$
> 
> It would still take more time.
I really don't want anyone to use .*$.

However I also don't want people to avoid using it due for
performance.

However
$ time grep -E '^..*$' /usr/share/dict/words |wc -l
98342

real    0m0.273s
$ time grep -E '^.' /usr/share/dict/words |wc -l
98553

real    0m0.148s



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to