in reply to Re: Main logic of this script
in thread Main logic of this script

Hi, Thank you all for your comments and suggestions. - I do not understand the epoch part and why the comparision. - Also, I am not able to understand the flow of three data structures ( @skipping, @printing and %pending ). The script scans the access log of Sun Directory Server. Format is within for your reference. https://docs.oracle.com/cd/E19850-01/816-6699-10/logfiles.html Again thanks for your support.

Replies are listed 'Best First'.
Re^3: Main logic of this script
by Anonymous Monk on Mar 09, 2015 at 11:16 UTC

    The epoch typically refers to Unix time, "a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds." If you have two date/time values in different time zones, you can convert them both to Unix time and compare them easily, since they're both just a number of seconds in a common time system. As for @skipping, @printing and %pending, there's a big comment block describing those directly in the code, and individual comments on just about every operation on those variables, so I'm not really sure what further explanation you are looking for? Is there a specific operation you are not clear on?