Export Multiple Files from Single Source,

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
tlango
Posts: 1
Joined: Sun Jun 01, 2008 2:44 am

Export Multiple Files from Single Source,

Post by tlango »

I'm evaluating, very interested in whether I can perform multiple search and replace functions, on a single input file, generating a unique output after each filter is applied. Here's the scenario:

Starting with an html page, /root/index.html
find easy pattern to replace something like <META name="Description" content="
Replace with something like <META name="Description" content="New and improved
--> now, write this to a new index.html file in directory /root/newandimproved/index.html
--> then continue with a new pattern to replace the SAME <META name="Description" content=" from the original file /root/index.html
find easy pattern to replace something like <META name="Description" content="
Replace with something like <META name="Description" content="even better and improved
--> now, write this to a new index.html file in directory /root/evenbetter/index.html

... and so on, for about 200 different iterations of replacing the description. I'm basically attempting to take a single index.html file, and generate 200+ versions of it with new content, based on what I have placed in each search and replace filter.

Looking for any ideas / help while I evaluate.

Thanks!
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Export Multiple Files from Single Source,

Post by DataMystic Support »

Hi Ted,

The best approach would be to start with a basic filter that works for one term.

Then use File\Export to JScript to convert this filter to a JScript file. You can then alter this code to run with each of your 200 terms, with a different output folder for each.
Post Reply