Session start/end dividers are *****
A complete session log represents data between two ***** lines inclusive.
(i.e. has ***** followed by Server Initialised line then some data then Server Closed line then *****)
An incomplete session log represents data from one ***** line onwards to the end of file.
(i.e. has ***** followed by Server Initialised line then some data but no Server Closed line or *****)
I need to pull each session log (inc. *****'s) into an array - @session1,@session2 etc.
I also need another array which has something along the lines of:
("Session1 - complete","Session2 - complete","Session3 - incomplete")
How can I do this, O wise log parsing Monks?
***** Server Initialised at 16:35PM, Monday, March 13, 2000 .. data .. Server Closed at 12:56AM, Monday, April 3, 2000 ***** ***** Server Initialised at 13:44PM, Monday, April 3, 2000 .. data .. Server Closed at 04:56AM, Weds, April 7, 2000 ***** ***** Server Initialised at 13:44PM, Monday, April 3, 2000 .. data ..
In reply to Multiple session log extraction from a single file problem by dmtelf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |