Export Multiple Files from Single Source,

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Export Multiple Files from Single Source,

Postby tlango » Sun Jun 01, 2008 2:55 am

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: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Export Multiple Files from Single Source,

Postby DataMystic Support » Sun Jun 01, 2008 10:45 pm

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.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 1 guest