Creating multiple files based on a list
Posted: Tue Mar 20, 2012 7:11 pm
Hello
I have a single HTML file and I would like to search for a value in that file, replace that value with the first line from a different text file, save the file with a new filename (the same as the value that I added) and then keep repeating this process through the subsequent lines in my text file.
So, for example I have original-file.html and a text file with value1, value2, value3, value4, etc each on a separate line. I need to create value1.html, value2,html, value3.html, value4.html and in each of those files I need to replace <span>original-file</span> with <span>value1</span>, <span>value2</span>, <span>value3</span>, <span>value4</span>
How do I do this in TextPipe?
Many thanks
Howard
I have a single HTML file and I would like to search for a value in that file, replace that value with the first line from a different text file, save the file with a new filename (the same as the value that I added) and then keep repeating this process through the subsequent lines in my text file.
So, for example I have original-file.html and a text file with value1, value2, value3, value4, etc each on a separate line. I need to create value1.html, value2,html, value3.html, value4.html and in each of those files I need to replace <span>original-file</span> with <span>value1</span>, <span>value2</span>, <span>value3</span>, <span>value4</span>
How do I do this in TextPipe?
Many thanks
Howard