kevin r wrote:
> I am writing a perl script to parse some firewall logs and I think that
> there may be a better way of doing somwthing than the one that I know.
>
> Syslog messages look as follows (IP addresses have been changed to protect
> the innocent)
>
> %PIX-6-106015: Deny TCP (no connectio
"kevin r" <[EMAIL PROTECTED]> writes:
> %PIX-6-106015: Deny TCP (no connection) from 1.1.1.1/80 to 2.2.2.2/2699
> flags PSH ACK on interface outside
>
> The info that I want to pull out of that line is source IP, source
> port, dest IP, dest port and flags( if any). The problem is that the
> fla
Kevin R wrote:
>
> I am writing a perl script to parse some firewall logs and I think that
> there may be a better way of doing somwthing than the one that I know.
>
> Syslog messages look as follows (IP addresses have been changed to protect
> the innocent)
>
> %PIX-6-106015: Deny TCP (no conne
I am writing a perl script to parse some firewall logs and I think that
there may be a better way of doing somwthing than the one that I know.
Syslog messages look as follows (IP addresses have been changed to protect
the innocent)
%PIX-6-106015: Deny TCP (no connection) from 1.1.1.1/80 to 2.2.2.
"Hubert Ian M. Tabug" wrote:
>
> Given that $a = `1234 abcde abdcd acbd`;
^ ^
So you are running the program "1234" and want the output in $a or are
the back-quotes a typo?
> Would anyone know of of a way for me to just
> "extract" the numerical
, December 06, 2001 21:48
To: Perl
Subject: Line Parsing/Splitting
Hello,
Given that $a = `1234 abcde abdcd acbd`;
Would anyone know of of a way for me to just "extract" the numerical
portion of the string. The numerical part is not fixed in length i
Hello,
Given that $a = `1234 abcde abdcd acbd`;
Would anyone know of of a way for me to just "extract" the numerical
portion of the string. The numerical part is not fixed in length it could be
composed4, 3, 2 or 1 digit I was thinking that the string could be tr