in reply to Merging two files by command line
perl -naE 'push @{$%{$F[0]}},@F[1..$#F];END{say"$_ @{$%{$_}}"for keys% +%}' File1 File2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Merging two files by command line
by venciso (Initiate) on Aug 20, 2009 at 14:56 UTC | |
by markkawika (Monk) on Aug 20, 2009 at 18:39 UTC |