[CentOS] Text Proccessing script - advice?
Eduardo Grosclaude
eduardo.grosclaude at gmail.com
Tue Dec 21 17:55:51 UTC 2010
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
More information about the CentOS
mailing list