Code, untested --
my %messages; while(<FILE>) { /(FW\-\d+\-\d+)/; # extract MSG ID next if exists($messages{$1}; # ignore it if we've $messages{$1} = $1; # alreaqdy seen it. }
%messages has the first occurance of each message
----
I Go Back to Sleep, Now.
OGB
In reply to Re: Tricky Syslog Parsing
by Old_Gray_Bear
in thread Tricky Syslog Parsing
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |