[Cascavel-pm] formatar aquivo

Fernando Oliveira fernandocorrea em gmail.com
Terça Agosto 26 13:41:53 PDT 2008


Minha tacada então:

perl -pe's|\n|-| if ++$i % 2'

2008/8/26 Wallace Reis <reis.wallace em gmail.com>

> On Tue, Aug 26, 2008 at 4:55 PM, Nilson Santos Figueiredo Junior
> <acid06 em gmail.com> wrote:
> > 2008/8/26 Nilson Santos Figueiredo Junior <acid06 em gmail.com>:
> >> Não costumo fazer isso mas vai lá:
> >>
> >>  perl -ne 'chomp; print $_, $i++ % 2 ? "\n" : "-"'
> >
> > Ou ainda:
> >
> >  perl -ne 's|\n|-| if !($i++ % 2); print'
>
> Será o iniício de um golf game?
>
> --
> wallace reis/wreis
> _______________________________________________
> Cascavel-pm mailing list
> Cascavel-pm em pm.org
> http://mail.pm.org/mailman/listinfo/cascavel-pm
>



-- 
Just another Perl Hacker,
Fernando (SmokeMachine)
http://perl-e.org
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/cascavel-pm/attachments/20080826/69b19160/attachment.html>


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