Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Merging Two CSV files Based on Two Columns

by aaron_baugher (Curate)
on Sep 15, 2012 at 22:29 UTC ( #993885=note: print w/ replies, xml ) Need Help??


in reply to Merging Two CSV files Based on Two Columns

If you have access to Unix-type utilities:

join -t ',' file2 file1 >output

One note: you need to sort the files before passing them to join, if they aren't already.

Aaron B.
Available for small or large Perl jobs; see my home node.


Comment on Re: Merging Two CSV files Based on Two Columns
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-07-06 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls