jsh has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys.
i have situation that i need to have below kind manipulation done by perl.
i cannot figure it out. I need to have output like below, print 5 values comma separated and new line.awk 'ORS=NR%5?",":"\n"'
val1;val2;val3;val4;val5 val1;val2;val3;val4;val5 val1;val2;val3;val4;val5 etc...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Concatenate every 5 lines of input with a comma.
by linuxer (Curate) on Jul 09, 2009 at 19:24 UTC | |
by ikegami (Patriarch) on Jul 09, 2009 at 19:34 UTC | |
Re: Concatenate every 5 lines of input with a comma.
by SuicideJunkie (Vicar) on Jul 09, 2009 at 19:28 UTC | |
by Anonymous Monk on Jul 10, 2009 at 06:32 UTC | |
by Anonymous Monk on Jul 10, 2009 at 07:40 UTC | |
Re: Concatenate every 5 lines of input with a comma.
by ForgotPasswordAgain (Priest) on Jul 09, 2009 at 19:24 UTC | |
by jwkrahn (Abbot) on Jul 09, 2009 at 21:06 UTC |
Back to
Seekers of Perl Wisdom