Unix .. search and concatenate multiple files

I have multiple .dat files, which i will get to know dynamically. dat file will have two columns seperated by comma. Will be like key value pairs.

Eg
File1
entry1,100
entry2,200
entry3,300

File2
entry1,500
entry3,750

Now I want the output as

File3
entry1,100,500
entry2,200
entry3,300,750

I appreciate if someone can quickly help me.

thanks in advance.


Source: unix

Leave a Reply