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?

The "strange character" is the line feed character. It's used in windows and macintosh line endings, but not in unix. It is \r in Perl. Disregard my entire post. Thanks.
  • Comment on Re: A 'strange' character("^M") of contrasting color appearing unexpededly at the end of lines of a unix file. How can it be removed?

Replies are listed 'Best First'.
Re^2: A 'strange' character("^M") of contrasting color appearing unexpededly at the end of lines of a unix file. How can it be removed?
by ww (Archbishop) on Dec 14, 2010 at 18:57 UTC
    Warning to future readers: Sorry; ^M is a 0x0d or "carriage return" a line feed is 0x0a (as correctly stated by jwkrahn, well before I posted this).

    AR's reference to the use of a return in "macintosh line endings" is at best flawed, as Apple adopted nix'ish LFs for its more recent OSen.

Re^2: A 'strange' character("^M") of contrasting color appearing unexpededly at the end of lines of a unix file. How can it be removed?
by bart (Canon) on Dec 15, 2010 at 11:28 UTC
    Apart from the name "line feed" which should have been "carriage return", you were pretty spot on.

    So don't be so hard on yourself.