I have tried the following script:
//Rename Page
set -s OldGroup = TestA
set -s OldPage = A
set -s NewGroup = TestB
set -s NewPage = B
sed -i 's|${OldGroup}([./]\)?)${OldPage}|${NewGroup}$1${NewPage}|gi' `pagelist link=${OldGroup}.${OldPage} sep=\n`
mv ${OldGroup}.${OldPage} ${NewGroup}.${NewPage}
////////////
and I noticed that it only works when the link does not have any spaces. All of my links, by convention, have spaces. How might I modify this and the script that renames an entire group and fixes all links to it to include any links with spaces?

Thanks, and I hope this would be a useful modification for others as well.
Alex
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to