First of all, I think that you should just use the script that I gave you. :P If it works, don't mess with it! wink

Secondly, I don't understand where in your script, you're telling it to add the spaces.

Basically, you're breaking down the input into words and then reversing the order of the letters for each word "$mid($gettok($1-,%x,32),%i,1)" before moving on to the next word. But you're not taking any spaces from the original input and adding it to %o. Or am I blind?


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke