O
ollie
Can someone help with a perl construct for this. I am trying to perform
a SQL type update on a delimiter file. I want to use the value in one
file to update matching row in the other file. Kind of what you'll do
in a relational database system, but I need to do this outside of the
database.
Example
1st file
1,32, ,houston
3,40, ,albany
3,44, ,nyc
2nd file
1,Texas
3,NY
Result:
1,32,Texas,houston
3,40,NY,albany
3,44,NY,albany
a SQL type update on a delimiter file. I want to use the value in one
file to update matching row in the other file. Kind of what you'll do
in a relational database system, but I need to do this outside of the
database.
Example
1st file
1,32, ,houston
3,40, ,albany
3,44, ,nyc
2nd file
1,Texas
3,NY
Result:
1,32,Texas,houston
3,40,NY,albany
3,44,NY,albany