I apologize if this was covered in another post, but I wasn't able to find it in my searches. Maybe there's a better name for what I'm trying to do.
I'm trying to merge the contents of 2 different CSV files.
Basically I have 1 file that looks like this:
And another that looks like this:
In this example assume that value1 is equal in both files. What I'd ultimately like to end up with is a single CSV file that looks like this:
Instead of 2 separate records in 2 different files, I'd like to combine the 2 files so that all the data is in a single record.
If these were 2 tables in a database, a join would work perfectly. I know that I could import the CSVs into tables in a DB, do the join, and output the results, but I'd like to keep this process as lightweight as possible.
Is there a way to do this in PS? Would VB be a better choice?
Thanks
I'm trying to merge the contents of 2 different CSV files.
Basically I have 1 file that looks like this:
Code:
Field1,Field2,Field3
value1, ,value3
And another that looks like this:
Code:
Field1,Field2,Field3
value1,value2,
In this example assume that value1 is equal in both files. What I'd ultimately like to end up with is a single CSV file that looks like this:
Code:
Field1,Field2,Field3
value1,value2,value3
Instead of 2 separate records in 2 different files, I'd like to combine the 2 files so that all the data is in a single record.
If these were 2 tables in a database, a join would work perfectly. I know that I could import the CSVs into tables in a DB, do the join, and output the results, but I'd like to keep this process as lightweight as possible.
Is there a way to do this in PS? Would VB be a better choice?
Thanks