<div class="gmail_quote">On Sun, May 29, 2011 at 2:32 AM, Sonja Elen Kisa <span dir="ltr"><<a href="mailto:sonja@kisa.ca">sonja@kisa.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is there a tool I can use to bulk-edit pages in PMwiki following a<br>
pattern and drawing content from consistently labelled text files I<br>
already have? Should I do it by interacting with the DB, i.e. a DB<br>
tool? Or some other approach?<br>
<br></blockquote><div>Cookbook/WikiSh has potential to make this a pretty easy job...<br><br>The simplest case (just copying the text from the textfiles directly into pages in MyGroup) might look like this:<br><br>for i in TEXTFILE--path/to/*.txt<br>
do<br>   set -s pagename = "`basename ${i}`"<br>   cat TEXTFILE--${i} >MyGroup.${pagename}<br>done <br></div></div><br>-Peter<br>