Not for big files
C:\test>type junk A B C D C:\test>perl -0pe"y/\n//s;s/(.+)\n(.+)/$1,$2/g" junk A,B C,D
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
In reply to Re: Merge pairs of lines
by BrowserUk
in thread Merge pairs of lines
by integral
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |