deepak2027 has asked for the wisdom of the Perl Monks concerning the following question:
File1.txt
ID NAME date Val1 Val2 Val3 Val4
1 ABC 04-05-2013 10 11 12 13
2 XYZ 04-05-2013 21 22 23 24
1 ABC 05-05-2013 30 31 32 33
2 XYZ 05-05-2013 41 42 43 44
File2.txt
ID NAME date Val101 Val102 Val103 Val104
1 ABC 04-05-2013 50 51 52 53
File3.txt
ID NAME date Val101 Val102 Val103 Val104
1 ABC 05-05-2013 60 61 62 63
2 XYZ 05-05-2013 71 72 73 74
All these files should merge as below
result.txt
ID NAME date Val1 Val2 Val3 Val4 Val101 Val102 Val103 Val104
1 ABC 04-05-2013 10 11 12 13 50 51 52 53
2 XYZ 04-05-2013 21 22 23 24 "--" "--" "--" "--"
1 ABC 05-05-2013 30 31 32 33 60 61 62 63
2 XYZ 05-05-2013 41 42 43 44 71 72 73 74
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Merge Columns of Multiple files based on Multiple Common Column
by Corion (Patriarch) on May 03, 2013 at 05:43 UTC | |
by deepak2027 (Initiate) on May 03, 2013 at 06:57 UTC | |
by Corion (Patriarch) on May 03, 2013 at 07:21 UTC | |
by hdb (Monsignor) on May 03, 2013 at 07:45 UTC | |
|
Re: Merge Columns of Multiple files based on Multiple Common Column
by hdb (Monsignor) on May 03, 2013 at 07:07 UTC | |
by karlgoethebier (Abbot) on May 03, 2013 at 10:55 UTC | |
|
Re: Merge Columns of Multiple files based on Multiple Common Column
by Zzenmonk (Sexton) on May 03, 2013 at 15:30 UTC |