Thanks all .


On Sat, Nov 28, 2009 at 3:00 AM, Randal L. Schwartz
<mer...@stonehenge.com>wrote:

> >>>>> "Majian" == Majian  <jian...@gmail.com> writes:
>
> Majian> Hi ,all:
> Majian> I have a problem about this :
>
> Majian> cat test:
> Majian> 12
> Majian> 23
> Majian> 34
> Majian> 45
> Majian> 56
> Majian> 67
>
> Majian> I want to become like this :
> Majian> 1223
> Majian> 3445
> Majian> 5667
>
> Majian> I thought it for  a long time , but I have no idea yet~~
>
> Simply:
>
>  perl -pe 'chomp; $_ .= <>' <input >output
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside
> discussion
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

Reply via email to