kayj has asked for the wisdom of the Perl Monks concerning the following question:
I have two files that I want to combine into one file. Here is the problem that I am having
The first file looks likeThe second file looks as followsName measure Age Eric Test1 40 16 Test2 35 16.5 Test3 60 27 Tets4 20 30 Dan Test1 15 50 Test2 22 70
And I would like the final output file to look like thisName Area Eric Texas Dan NY
Name measure Age Area Eric Test1 40 16 Texas Test2 35 16.5 Test3 60 27 Tets4 20 30 Dan Test1 15 50 NY Test2 22 70
The problem is that the records in file 1 do not all have the same length. What is the best way to get this done?
Your help is greatly appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to merge two files?
by toolic (Bishop) on Aug 21, 2009 at 19:34 UTC | |
by toolic (Bishop) on Aug 22, 2009 at 00:32 UTC |