MessageFrom you log file, I see there a blank line at head, 
so remove it first.

Second, I see the location and virus name is warped by 2 line, 
is that you made it, or NV did this ? If that's the fact that location
and virus name are warped by itself, you may try this

do
{  $loc = <LOG>;
   $virNm = <LOG>;
   $virNm =~ s/is infected with the //g;
   .... Do something to put the result to an array or hash ....
} until (eof LOG);

Rgds, 
Connie

  ----- Original Message ----- 
  From: Scott, Joshua 
  To: [EMAIL PROTECTED] 
  Sent: Friday, July 12, 2002 8:07 AM
  Subject: Regular Expressions and a poorly organized logfile


  Hello everyone,  first I'd like to say thank you to everyone who responded to my 
issue with Avoiding Duplicate Entries.  I took the advice given and found a solution. 
Thank you very much!

  My latest problem has to do with regular expressions and the logfile that Norton 
Antivirus 2002 creates.  I've attached the Norton activity.log.  I would like some 
advice as to how to go about parsing this file and making some sense of it.  I'd like 
to somehow pull out the virus name, path and whatever else I can.  I'm not even 100% 
sure if regular expressions are the way to go.  Any and all assistance is greatly 
appreciated.

  Thank you,
  Joshua Scott
  Security Systems Analyst, CISSP
  626-568-7024 


  
======================================================================================NOTICE
 - This communication may contain confidential and privileged information that is for 
the sole use of the intended recipient. Any viewing, copying or distribution of, or 
reliance on this message by unintended recipients is strictly prohibited. If you have 
received this message in error, please notify us immediately by replying to the 
message and deleting it from your computer.

  ==============================================================================




------------------------------------------------------------------------------


  -- 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to