in reply to Content of one file to another file if a filed matches

G'day sm81,

Welcome to the Monastery.

The file formats are lost because you've posted the file contents as paragraph text. Please wrap all code and data in <code>...</code> tags.

Maybe it's lost amongst the data, but I can't see what code you've tried or what output you're currently getting and how that differs from what you actually want.

Please see "Writeup Formatting Tips" and "How do I post a question effectively?" for more details on these issues.

— Ken