[pmwiki-users] Tool to bulk-edit pages?

Peter Bowers pbowers at pobox.com
Sun May 29 03:23:51 CDT 2011

On Sun, May 29, 2011 at 2:32 AM, Sonja Elen Kisa <sonja at kisa.ca> wrote:

> Is there a tool I can use to bulk-edit pages in PMwiki following a
> pattern and drawing content from consistently labelled text files I
> already have? Should I do it by interacting with the DB, i.e. a DB
> tool? Or some other approach?
> Cookbook/WikiSh has potential to make this a pretty easy job...

The simplest case (just copying the text from the textfiles directly into
pages in MyGroup) might look like this:

for i in TEXTFILE--path/to/*.txt
   set -s pagename = "`basename ${i}`"
   cat TEXTFILE--${i} >MyGroup.${pagename}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20110529/7a1dcc94/attachment.html>

More information about the pmwiki-users mailing list