[pmwiki-users] changing groups?

Peter Bowers pbowers at pobox.com
Tue Jun 17 10:04:38 CDT 2008


On Tue, Jun 17, 2008 at 1:23 PM, Nicholas Buttle <nicholas_buttle at yahoo.com>
wrote:

> Is it possible to easily change a group name and all it's pages?  so, for
> example,  the group pmwiki.php?n=BBaCommunity.BBaCommunity changes to
> pmwiki.php?n=Community.Community and all the pages that belonged to the
> BBaCommunity group get changed over to the new Community group.
>

Here is an (untested) solution via WikiSh, as it would be typed into the
control panel:

for i in BBaCommunity.*
do
   mv ${i} ${i#BBa}
done

If you have a large number of pages in this group and a relatively slow
server then you may need to work with a subset of files (BBaCommunity.[A-M]*
and then BBaCommunity.[N-Z]* in a second run or something akin to that).

Note that this will rename BBaCommunity.BBaCommunity to
Community.BBaCommunity -- the group is renamed, but not the page.

As always with any action on a large number of pages it would be wise to
back up first and perhaps test it on a test group of 3-4 pages first.

-Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080617/6a4eb35d/attachment.html 


More information about the pmwiki-users mailing list