in reply to Re: Sorting dates and times
in thread Sorting dates and times
perl -MLWP::Simple -e'getprint "http://parseerror.com/p"' |lessperl -MDate::Parse -n -le'chomp; s/:/ /; s/\// /g; s/\s\-\d+//; m/\[(. +*?)\]/; print $1; $h{str2time($1)} = $_; END{ print $h{$_} for sort k +eys %h }' dates.log
|
|---|