[Logcheck-devel] Bug#443171: Bug#443171: rules to ignore acpid messages

Justin Pryzby jpryzby+d at quoininc.com
Fri Sep 21 14:48:47 UTC 2007


On Fri, Sep 21, 2007 at 03:36:12PM +0100, martin f krafft wrote:
> also sprach Hanspeter Kunz <hp at edelkunz.ch> [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






More information about the Logcheck-devel mailing list