PMWIKI migration from 0.4.23 to 2.2.1 howto

I had to migrate from older 0.4.2 pmwiki
THAT HAS DIFFERENT WIKI-MARKUPS
to pmwiki 2.2 and was facing the nightmare
of having to change 200 pages by hand:
Like so:
From: [[RubyEaston Ruby Easton]]
To: [[RubyEaston |Ruby Easton]]
aaaaaaaaarrrrrrrrgggggghhhhhhhhhhh!
I downloaded the wiki.d folder,
noting its permissions (664), and
used UEDIT (uedit-32 ver5)
->Search -> Replace in Files
X Match Case
X Regular Expressions
SEARCH FOR ^(^[^[*^) ^(*^]^]^)
REPLACE WITH ^1 |^2
then uploaded it again and set the permisisons:
cd /var/www/mydomain.com/wikifolder/wiki.d/
chmod 664 *

BINGO!

0 Comments:
Post a Comment
<< Home