On Tue, Dec 21, 2010 at 2:33 PM, <lhecking at users.sourceforge.net> wrote: > If you're not afraid of perl, the Date-Manip module allows comparing time > and date, among other things. A dirtier take could be perl -ne '/,(\d+),(.*),(\d\d):.*/ && ($3>=9) and $s->{$1,$2}++ ; END {use Data::Dumper; print Dumper($s)}' < data $VAR1 = { '01368 2010-12-02' => 4, '01368 2010-12-03' => 3 }; -- Eduardo Grosclaude Universidad Nacional del Comahue Neuquen, Argentina