On Wed, 2005-05-04 at 00:12 +0200, maximilian attems wrote:
> On Fri, 29 Apr 2005, Peter Palfrader wrote:
> > Now logcheck doesn't usually allo for the @ in logs which results in
> > bascially no ignore line matching.  Please add @ to the regexes, thanks.
<snip log snippets>
> 
> ~/src/logcheck/rulefiles/linux$ egrep '\[._\[:alnum:\]-\]'  -r . | wc -l
> 896
> 
> that's not fun. while changing all those we'd better switch to the use of
> macros. very inclined to merge that with those open bugs.

Speaking of sed magic..

for i in *; do cat $i | sed -e "s/\[\._\[:alnum:\]-\]+/[EMAIL PROTECTED]:alnum:
\]-\]\+/" >> $i.new; done 

..appears to work here..

-j

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to