B
Bob
I have a log file i want to further manipulate, and be able to extract info
from.
(the actual output data is from qmail-qread command )
the format of the file is as below
6 Oct 2003 14:01:12 GMT #23456 12345 <[email protected]>
remote (e-mail address removed)
done (e-mail address removed)
6 Oct .....
the format is always date, line, followed by 1 or more info lines, that are
either \t or " " indented.
I want to grap each of these "chunks" and then run a regex and output them
when I get a match.
So, using the data I have, I want to read in the (3 lines in this case, but
can 2 to ???? lines) and then output the whole block if I match a regex.
If anyone can recommend some place to start reading It would be appreciated.
from.
(the actual output data is from qmail-qread command )
the format of the file is as below
6 Oct 2003 14:01:12 GMT #23456 12345 <[email protected]>
remote (e-mail address removed)
done (e-mail address removed)
6 Oct .....
the format is always date, line, followed by 1 or more info lines, that are
either \t or " " indented.
I want to grap each of these "chunks" and then run a regex and output them
when I get a match.
So, using the data I have, I want to read in the (3 lines in this case, but
can 2 to ???? lines) and then output the whole block if I match a regex.
If anyone can recommend some place to start reading It would be appreciated.