i have a quick question. it's more shell related than os specific, however,
i administrate nothing but sun boxes.
so...
i have this:
print "* ([Cc][Aa][Nn]-?[Ss][Pp][Aa][Mm]|[Rr]olex|[Pp][Ee][Nn][Ii1l][Ss]|
[Vv]?[Aa][Gg][Rr][Aa]|"Save.[0-9]0%.on")" >> $SR
appends a line to a file (procmail recipe snippet), simple enough...
i have literally hundred of these lines in different files. it's part of my
home brewed spam filter.
my problem is this, ocassionally, a regular expression catches a valid email
and marks it as spam. is it possible for me determine which specific regular
expression is matching within this -> "(this|that|theother)" ? i can
ksh -x, or run the filters and visually look for what is matching, however,
this is an admin intensive task that i'd rather let the shell (and
alt.solaris) figure out.
am i making sense?
of course the goal is to write a better spam filter...
Ron