in reply to Re: Reading a Log File - "pattern detection" Part 2
in thread Reading a Log File - "pattern detection" Part 2

Essentially, if your log file contained the following:

This is driving me nuts
Its time for coffee
Time to start drinking heavily

. . . and you wanted your script to find one or more "patterns"

then your

print OUT if (/Its time fore coffee/ | /Time to start drinking heavily/);

would need to be included. The "/" are what does the trick along with a decent text editor that will turn different colors when you get things right or wrong.

  • Comment on Re^2: Reading a Log File - "pattern detection" Part 2