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?
"^M" is a carriage return character. You can represent it in a regular expression as /\cM/ or /\x0D/ or /\015/ or /\r/.