[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] [/page]


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


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.