where my test file, dates.log was:perl -MDate::Parse -MData::Dumper -n -le'chomp; s/:/ /; s/\// /g; s/\s +\-\d+//; m/\[(.*?)\]/; print $1; $h{str2time($1)} = $_; END{ print $h +{$_} for sort keys %h }' dates.log
d 30/Mar/2002:00:03:44 -0500 b 22/Mar/2002:00:03:44 -0500 a 15/Mar/2002:00:03:44 -0500 c 24/Mar/2002:00:03:44 -0500hope this helps.
In reply to Re: Sorting dates and times
by pizza_milkshake
in thread Sorting dates and times
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |