Question
We have many (hundreds, potentially thousands) of ASCII files of almost exactly the same format. We would like to TWikitize them.
By TWikitize I mean:
- edit file to make it into TWiki table ready (we already have a script or can write better one to do that)
- then automatically "paste" into Twiki topic and build the page.
- name the Twiki topic by either the file name or by header information found in the file or by a combination.
We want to eliminate the manual process of copying the correctly formatted text and then pasting and saving it.
By having these files become TWiki pages we can search for important strings and be able to easily sort on columns for analysis.
If this is available in a newer release, please let me know and I will attempt to upgrade.
Thank you
Environment
--
PeretzDavid - 06 Oct 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
You can basically drop .txt files into any
twiki/data/Web directory, and TWiki will pck them up as topics. In your script you can generate some TWiki markup, such as tables and bullets.
Your script can also auto-generate the file name based on your content. Make sure to use only alphanumeric chars, underscore (and if needed dashes). You can generate
WikiWord names (such as
TestCase1234.txt) so that the topics can link automagically.
--
PeterThoeny - 21 Nov 2006