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
    He did say he wanted to do it on Windows, so a response that invokes the Unix command "join" isn't particularly helpful for him.

      ORLY?

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.