The ^M is something that almost all windows editors add on as the "enter"
command at the end of each line. Even notepad does this. It's just something
that windows, and dos editor, does to files so it knows where the end of a line
is.
Jake
On Mon, 31 Jul 2000, Bret Hughes wrote:
--Thanks to all who responded. For the record, the solution I came up with
--was tr. The echo -n I could not get to work in this situation. I believe
--it was because the ^M was already there. It appears from the man page
--that echo -n will merely keep a ^M from being appended. This is a weird
--thing that I have yet to really get my head around. It took a tr -d
--"\n,\r" to get the functionality I needed. \n or \r alone would not do
--it. What the heck does ^M do anyway? I thought that dos did the cr lf
--deal seperatly and *nixes used just on but from my experiments it would
--appear that the were both ther even though only a singel ^M showed up.
--
--Thanks again to all.
--
--Bret
--
--
----
--To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
--as the Subject.
--
--
Jake McHenry
[EMAIL PROTECTED]
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.