Hi
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:
alice.html <title>name</title>
bob.html <title>name</title>
john.html <title>name</title>
I want to end up with:
alice.html <title>alice</title>
bob.html <title>bob</title>
john.html <title>john</title>
I have a text file with all the names listed in alphabetical order. So my text file reads:
alice
bob
john
(etc)
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.
Thanks.