in reply to Extracting Pattern Match from log
Whilst I don't have any logs with myDoom virus attempts to test with, this should do the trick for you ...
- perl -MEmail::Valid::Loose -nle 'print $1 if /450 <($Email::Valid::Loo +se::Addr_spec_re)>/' < /var/log/mail/info
- perl -nle 'print $1 if /450 <([^\>]+)>/' < /var/log/mail/info
perl -le "print unpack'N', pack'B32', '00000000000000000000001010111010'"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Extracting Pattern Match from log
by darxide1982 (Initiate) on Jan 28, 2004 at 11:42 UTC |
In Section
Seekers of Perl Wisdom