in reply to Main logic of this script

The code appears to be commented fairly well, but even without comments, $usage, and closing curlies, this script still has 575 lines (with ~100 lines of simple variable assignments). A "brief overview" might be difficult to achieve - what exactly do you need it for? If you're trying to learn something, it seems counterproductive to ask someone else to do the work for you. If you're just having trouble understanding some of the bits of this script, or you need to change something, you'll probably achieve more by asking more specific questions - what "challenges in understanding the flow" do you have?

Replies are listed 'Best First'.
Re^2: Main logic of this script
by johnprince1980 (Initiate) on Mar 09, 2015 at 10:32 UTC
    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.

      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?