Hi Gary,
No problem. It just seemed like one of those tasks that PS is very suited to, and I thought there might be a neat trick to it. Thanks for explaining about the $_, I didn't know that. What I posted is every inch Frankencode. If you can see a way to do any of it better, I'm all for it.
Thanks