RE: what is ^M at the end of a line?

[email protected] ("Bob McConnell")
Newsgroups perl.beginners
Message-ID <[email protected]>
From: Rob Coops

> That ^M is a line feed, or well the windows version of a line feed.

Actually, it is an ASCII CR or carriage return. Microsoft uses CR/LF for
end of line, where Unixen use just LF. Apple used something else, but
may have changed when they switched to OSX. I used tr to clean it up,
much like dos2unix does. I think the command was:

$ tr "\r\n" "\n" < badfile > goodfile

Bob McConnell
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.