[pmwiki-users] Re: regular expressions?
chr at home.se
chr at home.se
Fri May 6 04:24:58 CDT 2005
On Thu, 21 Apr 2005, Patrick R. Michaud wrote:
> 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'
I added the command line above to Cookbook/GlobalOperations in lack of a
better place to put it.
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list