I have 50 campaigns using the same template. Is there a way to mass edit all the HTML files without having to edit the HTML files one by one?

OR,

I have content for all 50 campaigns organized in a spreadsheet. Is there any program that allows me to replace the content in email HTML from the spreadsheet?