in reply to Compare 2 CSV files and create a new CSV file out of comparision
The proper way to do it is to read the first file, and use a hash to store the contents. Use the vm_name column as key and the whole row as a value.
Then read the second file line by line, and look up the vmname in the hash you created earlier, and print the joined columns to the third file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Compare 2 CSV files and create a new CSV file out of comparision
by slayedbylucifer (Scribe) on Jul 02, 2012 at 09:23 UTC | |
by moritz (Cardinal) on Jul 02, 2012 at 10:31 UTC |