https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6541

Adam Katz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Adam Katz <[email protected]> 2011-03-04 13:59:31 EST ---
(In reply to comment #2)
> grep -ri '(?![^)]*[\[(?\\].*).*><' rules*

Okay, that's hard to do without grep -P ... here's a more complete query:

grep --color -riP '\(\?\!\K[^)]*[\[(?\\\w].*(?=\)[<>\w]{1,30}><)'

or else using UNIX grep plus perl:

grep -r . rules* |perl -ne 'print if /\(\?\![^)]*[\[(?\\\w].*\)[<>\w]{1,30}></'

... with colors:

grep -r . trunk/rules* |perl -ne '
  if (/^([^:]*)(.*\(\?\!)([^)]*[\[(?\\\w].*)(\)[<>\w]{1,30}><.*)/) 
    { print "\e[0;35m$1\e[0;0m$2\e[1;32m$3\e[0;0m$4\n"; }'

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to