My understanding is the ^M, which is \r, is a beginning-of-line command -
it moves the carriage back to the beginning of the same line in a
DOS/Windows environment (return).  \n moves down to the next line, sort of
like pressing the down arrow, it doesn't move the cursor back to the
beginning of the line. Linux does both with \n.

Glen



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.

Reply via email to