[ic] [/page]
Peter
peter at pajamian.dhs.org
Fri Apr 11 22:25:01 UTC 2008
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
More information about the interchange-users
mailing list