On Tue Sep  2 03:07:56 EDT 2014, [email protected] wrote:
> I want to process some dated logfiles in awk.
> 
> gawk has date, strftime and mktime but Brian's does not.

i'm not sure what your particular problem domain is since you don't say, but 
i've 
always just used the standard awk functions to convert dates.  with string 
manipulation,
regular expressions, and associative arrays, i have not found a date conversion 
issue that
awk can't handle.  this has the advantage that a second awk isn't introduced to 
the system,
with all the resulting incompatibilites, and not requiring porting something 
from linux.

the operations that strftime the unix fn provides are implementable directly in 
awk.

speaking as one who has fallen into this trap, i think this might be an example 
of negative
pattern, too.  it's easy to get hung up on missing specialized function, when 
in fact the task
at hand doesn't really need it. stand up and shout if you remember the days 
when packages
would often fail to compile because they were looking for a function that 
wasn't really
necessary, and the test for that function failed in some unexpected way.  i 
wish i could
remember some of the examples.  they were spectacular.  and not in a good way.

- erik

Reply via email to