Re: Text Proccessing script - advice?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Dec 21, 2010 at 2:33 PM,  <lhecking@xxxxxxxxxxxxxxxxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux