<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div><br></div><div>Thanks</div><div>Alex</div><div><br><div><div>On Jul 21, 2012, at 12:53 PM, Peter Bowers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">No that's fine.  If it's an action you do on a regular basis then<br>you'll probably want to put the code on a page and put it together<br>with a form, but that can easily be a future step.  Doing it in the<br>ControlPanel is a good way to get things working...<br><br>I loaded the first command from your command history and noticed that<br>you have a newline in the middle of the line that should read like<br>this:<br><br>sed -i 's|${OldGroup}([./]\)?)${OldPage}|${NewGroup}$1${NewPage}|gi'<br>`pagelist link=${OldGroupPN}.${OldPagePN} sep=\n`<br><br>That should all be on one line with no newline before the `pagelist...<br><br>It may have gotten confusing because the email may have automatically<br>wordwrapped it when I sent it to you.<br><br>Anyway, I certainly don't want to come anywhere close to actually<br>running code like this on someone else's system, so I'm just letting<br>you know what needs to happen and then leave it up to you.<br><br>If that works, please report back to the list that it was just a<br>newline due to the email wordwrapping.  If it doesn't work then let me<br>know and I'll take another look -- just give me the exact error<br>message since I'm wanting to avoid actually executing anything on your<br>system.<br><br>-Peter</span></blockquote></div><br></div></body></html>