Yes this seems to work now. Thank you very much. I am going to try to modify this into a page action and for renaming groups.

Thanks
Alex

On Jul 21, 2012, at 12:53 PM, Peter Bowers wrote:

No that's fine.  If it's an action you do on a regular basis then
you'll probably want to put the code on a page and put it together
with a form, but that can easily be a future step.  Doing it in the
ControlPanel is a good way to get things working...

I loaded the first command from your command history and noticed that
you have a newline in the middle of the line that should read like
this:

sed -i 's|${OldGroup}([./]\)?)${OldPage}|${NewGroup}$1${NewPage}|gi'
`pagelist link=${OldGroupPN}.${OldPagePN} sep=\n`

That should all be on one line with no newline before the `pagelist...

It may have gotten confusing because the email may have automatically
wordwrapped it when I sent it to you.

Anyway, I certainly don't want to come anywhere close to actually
running code like this on someone else's system, so I'm just letting
you know what needs to happen and then leave it up to you.

If that works, please report back to the list that it was just a
newline due to the email wordwrapping.  If it doesn't work then let me
know and I'll take another look -- just give me the exact error
message since I'm wanting to avoid actually executing anything on your
system.

-Peter

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to