Re: Line Parsing

2003-02-27 Thread R. Joseph Newton
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

Re: Line Parsing

2003-02-27 Thread Harry Putnam
"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

Re: Line Parsing

2003-02-27 Thread John W. Krahn
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

Line Parsing

2003-02-27 Thread kevin r
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.

Re: Line Parsing/Splitting

2002-01-02 Thread John W. Krahn
"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

RE: Line Parsing/Splitting

2002-01-01 Thread Wagner-David
, 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

Line Parsing/Splitting

2002-01-01 Thread Hubert Ian M. Tabug
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