[ic] [/page]

Rick Bragg lists at gmnet.net
Fri Apr 11 22:54:35 UTC 2008


On Fri, 2008-04-11 at 15:25 -0700, Peter wrote:
> On 04/11/2008 08:05 AM, Rick Bragg wrote:
> > Just for a quick reference, this is what I did to replace all [/page]
> > and [/order] with </a>
> > 
> > cd to your catalog root, then:
> > 
> > find . -print | xargs perl -i -pe "s/\[\/page\]/<\/a>/g"
> > find . -print | xargs perl -i -pe "s/\[\/order\]/<\/a>/g"
> 
> I would modify those to:
> find . -print0 | xargs -0 perl -i -pe "s/\[\/page\]/<\/a>/g"
> find . -print0 | xargs -0 perl -i -pe "s/\[\/order\]/<\/a>/g"
> 
> ...that way it will work with filenames that have spaces and other funny 
> characters in them as well.
> 
> Peter

nice, thanks!
rick




More information about the interchange-users mailing list