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
In reply to Re: Concatenate every 5 lines of input with a comma.
by ForgotPasswordAgain
in thread Concatenate every 5 lines of input with a comma.
by jsh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |