[Rio-pm] Tratamento de dados para CSV

Fernando Oliveira fernandocorrea em gmail.com
Sexta Junho 1 09:26:50 PDT 2012


Pois é... aqui no trabalho é assim... :(

Eu garanto q vc não desgostou mais q eu... :(

Just another Perl Hacker,
Fernando (SmokeMachine)


2012/6/1 Stanislaw Pusep <creaktive em gmail.com>

> C:\> :(
>
> ABS()
>
>
>
> On Fri, Jun 1, 2012 at 1:23 PM, Fernando Oliveira <
> fernandocorrea em gmail.com> wrote:
>
>> C:\>perl -lnE"/;/;$,=$&;++$m{$`}{$'}}{say
>> X=>@a=keys%m;say$_,@{$m{$_}}{@a}for em a" tabela.txt
>> X;Joao;Pedro;Manoel
>> Joao;;1;
>> Pedro;;;1
>> Manoel;;1;
>>
>>
>>
>> Just another Perl Hacker,
>> Fernando (SmokeMachine)
>>
>>
>> 2012/6/1 breno <breno em rio.pm.org>
>>
>>> perl -F\; -lanE'++$m{$F[0]}{$F[1]}}{$,=";";say
>>>
>>> X=>@a=keys%m;say$_,@{$m{$_}}{@a}for em a' tabela.txt
>>>
>>
>>
>> _______________________________________________
>> Rio-pm mailing list
>> Rio-pm em pm.org
>> http://mail.pm.org/mailman/listinfo/rio-pm
>>
>
>
> _______________________________________________
> Rio-pm mailing list
> Rio-pm em pm.org
> http://mail.pm.org/mailman/listinfo/rio-pm
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/rio-pm/attachments/20120601/dace4c65/attachment-0001.html>


Mais detalhes sobre a lista de discussão Rio-pm