in reply to Merging two files by command line
TMTOWTDI, sometimes not even involving perl . . .
$ for i in file[12] ; { print $i ; cat $i } file1 Adam 1 2 3 Eve 4 5 6 file2 Adam 4 5 6 Eve 7 8 9 $ join -1 1 -2 1 file1 file2 Adam 1 2 3 4 5 6 Eve 4 5 6 7 8 9
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Merging two files by command line
by markkawika (Monk) on Aug 20, 2009 at 18:29 UTC | |
by Fletch (Bishop) on Aug 20, 2009 at 19:14 UTC | |
by Anonymous Monk on Aug 21, 2009 at 00:00 UTC |