I have 1,000 html pages, the title of which is a name. The title tag of these pages is <title>name</title> ready for me to insert the correct name. Eg:
I want to end up with:
I have a text file with all the names listed in alphabetical order. So my text file reads:
So I basically need a batch program to find 'name' in the first file (alice.html) and replace 'name' with the first name in my list (alice), then find the next instance of 'name' (in bob.html) and replace it with the second name in the list (bob) and so on. I have found a program to do that for file names, but not text within a file.
Can anybody help? I am using Dreamweaver CS5 for Mac if that helps, but could use a Windows program if necessary.