in reply to A 'strange' character("^M") of contrasting color appearing unexpededly at the end of lines of a unix file. How can it be removed?
I use s/\r//gs;. \r\n is the default line terminator of DOS/Windows text. If you have a file from a windows machine, and you're on linux, run "dos2unix" on it.
--Ray