OMG thankyou
I have been searching everywhere!
and thats not in my book...
in fact looking at the man page, I still don't quite understand what you did..
I'm guessing ${parameter/pattern/string}
Pattern substitution.
well thanks again, been pulling my hair out, now i can finish this bugger