[pmwiki-users] Re: regular expressions?
Patrick R. Michaud
pmichaud at pobox.com
Thu Apr 21 08:31:24 CDT 2005
On Thu, Apr 21, 2005 at 03:04:27PM +0200, chr at home.se wrote:
> On Thu, 21 Apr 2005, Patrick R. Michaud wrote:
>
> > On Thu, Apr 21, 2005 at 07:01:53AM -0500, Monty wrote:
> > > One of the downs of WikiPages not being text/plain is that we can't use
> > > the unix toolchain to do transformations or analysis on them. Is there
> > > any tool to permit a WikiAdmin to use a match or replace RegEx across an
> > > entire Group (or Farm) of pages?
> >
> > There's a code excerpt at
> > http://www.pmwiki.org/wiki/Cookbook/GlobalOperations that shows one
> > way to do it. I'm planning to write a recipe that provides a checkbox-form
> > so that the admin can easily perform operations on subsets of pages.
>
> You don't happen to have a simple shell script that extracts just the raw
> source of a wiki page (i.e. from it's file in wiki.d/)? That could be
> useful sometimes.
grep '^text=' wiki.d/Main.WikiSandbox | sed -e 's/^text=//' | tr '\262' '\012'
Pm
More information about the pmwiki-users
mailing list