In a one-liner, you can auto-chomp and auto-newline with "-l". You'll save 9 characters.
perl -ne 'push@{($|?"_0":"_1")},$_;eof&&$|++;END{$,=$?||map{print$_1[$-++],$_} +@_0}' file1 file2
In reply to Re: join program in one-liner
by Anonymous Monk
in thread join program in one-liner
by sh1tn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |