perl -ne 'chomp;push@{($|?"_0":"_1")},$_;eof&&$|++;END{$,=$?||map{print$_1[$-+ ++],$_,$/}@_0}' file1 file2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: join program in one-liner
by eric256 (Parson) on Aug 19, 2005 at 18:28 UTC | |
|
Re: join program in one-liner
by Joost (Canon) on Aug 19, 2005 at 19:08 UTC | |
by eric256 (Parson) on Aug 19, 2005 at 19:59 UTC | |
|
Re: join program in one-liner
by Anonymous Monk on Aug 19, 2005 at 17:11 UTC | |
by Anonymous Monk on Aug 19, 2005 at 17:14 UTC | |
|
Re: join program in one-liner
by themage (Friar) on Aug 19, 2005 at 20:21 UTC | |
by bmann (Priest) on Aug 19, 2005 at 22:16 UTC | |
by truedfx (Monk) on Aug 28, 2005 at 11:40 UTC |