[pmwiki-users] Change the content of many pages at a time
nzskiwi at gmail.com
Tue Dec 9 01:01:01 CST 2008
For things like this I simply go into the wiki.d directory and use my
favourite editor for multiple file changes (WeaverSlave) and manually find
and replace on the files.(Course you could take a backup first).
2008/12/6 kirpi at kirpi.it <kirpi at kirpi.it>
> Pmwiki is so nice that we use it extensively, really.
> Now, one may need to make bulk changes to the content of all/many
> pages at a time. This is particularly true now that, thanks to PTVs,
> we can use pmwiki pages to record fields like "Date_of_birth:
> Imagine you have 300 pages in a Friends group, one per friend, and
> each page contains:
> * Name: xxx
> * Surname: xxx
> * Date_of_birht: xxx
> * Email: xxx
> What if I want to correct "Date_of_birht" to "Date_of_birth" to all
> the 300 pages?
> And, what if I want to add a "Sex:" variable just below "Surname:"?
> I've been told that there are unix tools like awk which can make
> the trick but, as far as my experience goes and despite nice pages
> like "Become an expert in 60 minutes", it turns out that it may takes
> ages before you can use awk: you have to *first* study Regular
> Expressions (which are a very complicated beast and may take weeks
> to master), and later approach awk itself.
> I personally found Emacs to be a friendlier choice, although not
> necessarily easy to use.
> I just started Cookbook/BulkReplace, but I'm surely not able to
> write about technical subjects.
> My questions are:
> a) Does anybody want/is_able to contribute his/her knowledge to the
> Cookbook/BulkReplace page, in order to provide pmwiki users with
> useful/practical advices on the matter?
> b) Does anybody know of a way to use php for such a purpose, so that a
> general script could be made into a recipe?
>  http://en.wikipedia.org/wiki/AWK
>  http://www.pmwiki.org/wiki/Cookbook/RegularExpressions thanks to
> Joachim Durchholz
>  I do not know how to write "line break"
>  http://www.pmwiki.org/wiki/Cookbook/BulkReplace
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users