|
Tom McDonald wrote:
> In lugnet.off-topic.fun, Todd Lehman writes:
> > In lugnet.off-topic.fun, Jeremy H. Sproat writes:
> > > Todd Lehman wrote:
> > > > Tom/Mark... I've got a 1.3 MB file here of all Tom's postings... Writing
> > > > a harvester to parse all the sentences and figure out exactly what's part of
> > > > Tom's sig and what's an official spamcake thingy is the tricky bit -- and
> > > > I'll let you do that part. If you'd like to receive this file by e-mail
> > > > or download it from somewhere, let me know.
> > > Can you fling a copy my way as well? I'll take a swig at it...
> You'll need a swig while doing it ;-)
If Perl is the code of refreshment, swig on! :-,
I'm not sure this will get all of them. It does introduce some non-sig
text.
BREAKAGE: while( $lineIn = <STDIN> ) {
if( $lineIn =~ m/\bTom McD\b/ ) {
while( $msgIn = <STDIN> ) {
if( $msgIn =~ m/spamcake/i ) {
print $msgIn;
while( $sigIn = <STDIN> ) {
if ( $sigIn =~ m/^\s*$/ || $sigIn =~ m/^[^:]+:/ ) {
print "\n";
next BREAKAGE;
}
print $sigIn;
}
} else {
last;
}
}
}
}
Cheers,
- jsproat
--
Jeremy H. Sproat <jsproat@io.com>
http://www.io.com/~jsproat
Darth Maul Lives
|
|
Message has 1 Reply:
Message is in Reply To:
71 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|