in reply to Removing Control Characters

Try using the regex:
s/^M//g
That should do the trick for you. I hope I don't have to mention that the "^" is not a caret which would simply result in anchoring an "M" to the beginning of the line, I also leave out the "$" since they might be in other places in the file. I try not to make assumptions... (It's early and I'm just getting coffee...)

Update: Pet peeve - Users (developers) who use Samba mounts and "notepad" to edit source and data files to be used by the Sun box...

Mike - mps@discomsys.com

"The two most common elements in the universe are hydrogen... and stupidity."
Harlan Ellison