I propose a new identifer that can read the sessions of a log file....
$readlog(filename, S, N)
S is the session number, if 0 returns number of sessions
N is the line number of that session, if 0 returns number of lines in a session
Example:
$readlog(SampleFileBelow, 1, 0) = 1
$readlog(SampleFileBelow, 1, 1) = <X> This is session 1...
$readlog(SampleFileBelow, 2, 0) = 1
$readlog(SampleFileBelow, 2, 1) = <X> This is session 2...
--- Sample Log File ----
Session Start: Wed Dec 11 15:25:53 2002
Session Ident: X
Session Ident: X (X@X.com)
<X> This is session 1...
Session Close: Thu Dec 19 22:02:36 2002
Session Start: Wed Dec 11 15:25:53 2002
Session Ident: X
Session Ident: X (X@X.com)
<X> This is session 2...
Session Close: Thu Dec 19 22:02:36 2002