Re: log file question

2002-04-03 Thread Jeff 'japhy' Pinyan
On Apr 3, Hans Holtan said: >I don't know if this is too general for your purposes, but this >should look through a whole file and find anyplace that the word >"running" appear in three consecutive lines. Actually, the /g switch there might make it break; I'd remove it. > ($all_

Re: log file question

2002-04-03 Thread Hans Holtan
Hi Lance, I don't know if this is too general for your purposes, but this should look through a whole file and find anyplace that the word "running" appear in three consecutive lines. open (INFILE, "+; for (0 .. ($#all_lines-2)){ if ( ($all_lines[$_] =~ m/running/gi) a

Re: log file question

2002-04-03 Thread John W. Krahn
Lance Prais wrote: > > I am using the following code to parse through a log file and match words on > two sequential lines. I would like to add some code to it to check three > sequential lines. I have tried several things but with not luck. Could > someone please take a look at the code at let

log file question

2002-04-03 Thread Lance Prais
I am using the following code to parse through a log file and match words on two sequential lines. I would like to add some code to it to check three sequential lines. I have tried several things but with not luck. Could someone please take a look at the code at let help me with this. Thank yo