in reply to Concatenate every 5 lines of input with a comma.
UPDATE: Oh, sorry, I'd only read the subject. I don't understand the body of your post.
Original:
perl -pe's/$/,/ if not$.%5' file
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Concatenate every 5 lines of input with a comma.
by jwkrahn (Abbot) on Jul 09, 2009 at 21:06 UTC |
In Section
Seekers of Perl Wisdom