in reply to Pull users with multiple search
So at which part of implementing that logic do you get stuck?
EDIT:
In case you don't know where to even begin, here's one possible recipe for implementing this task:
Of course, what exactly "add/check/remove relevant information" means in 2.b.i. - 2.b.iii., depends on the exact requirements of what "three occurrences within an hour" should mean. See hdb's answer for details.
Also, this recipe assumes that the BIND line always comes before the corresponding RESULT lines, and that a little extra memory overhead is acceptable in order optimize speed. If either of these requirements is not given, a better way to do it might be to do a first parsing run through the logfile for the RESULT lines only, and then a second one for only those BIND lines that are actually needed.
For general help on how to parse a file and use regexes, see the links in Anonymous Monk's answer.
|
|---|