Re: Mcopy not removing the "^M" character

2004-11-11 Thread David Jardine
On Thu, Nov 11, 2004 at 10:07:30AM -0600, John Hasler wrote: > Richard Lyons wrote: > > Wouldn't > > $ tr '\r\n' '\n' < dosfile > unixfile > > do it? > > David Jardine wrote: > > For me that doubles each newline, but I can't see why. > > > >From the tr man page: > > SET2 is extended to l

Re: Mcopy not removing the "^M" character

2004-11-11 Thread John Hasler
Richard Lyons wrote: > Wouldn't > $ tr '\r\n' '\n' < dosfile > unixfile > do it? David Jardine wrote: > For me that doubles each newline, but I can't see why. >From the tr man page: SET2 is extended to length of SET1 by repeating its last character as necessary. -- John Hasler -- T

Re: Mcopy not removing the "^M" character

2004-11-11 Thread Eric Dickner
--- David Jardine <[EMAIL PROTECTED]> wrote: > On Mon, Nov 08, 2004 at 11:26:55PM +0100, Richard > Lyons wrote: > > Wouldn't > >$ tr '\r\n' '\n' < dosfile > unixfile > > > > do it? > > For me that doubles each newline, but I can't see > why. But > > $ tr -d '\r' < dosfile > unixf

Re: Mcopy not removing the "^M" character

2004-11-09 Thread Richard Lyons
On Tuesday 09 November 2004 00:00, David Jardine wrote: > On Mon, Nov 08, 2004 at 11:26:55PM +0100, Richard Lyons wrote: [...] > > Wouldn't > >$ tr '\r\n' '\n' < dosfile > unixfile > > > > do it? > > For me that doubles each newline, but I can't see why. But > > $ tr -d '\r' < dosfil

Re: Mcopy not removing the "^M" character

2004-11-08 Thread David Jardine
On Mon, Nov 08, 2004 at 11:26:55PM +0100, Richard Lyons wrote: > On Monday 08 November 2004 19:00, Eric Dickner wrote: > > > > --- David Jardine <[EMAIL PROTECTED]> wrote: > > > > > If you're putting something on to a windows machine, > > > wouldn't > > > mcopy automatically use the dos CR-LF?

Re: Mcopy not removing the "^M" character

2004-11-08 Thread Kenward Vaughan
On Mon, Nov 08, 2004 at 07:58:13PM +0100, David Jardine wrote: > On Mon, Nov 08, 2004 at 07:01:41AM -0800, Kenward Vaughan wrote: > > On Mon, Nov 08, 2004 at 05:46:08AM -0800, Eric Dickner wrote: > > > Hello, > > > > > > I have a text file that I burned onto a CD on a > > > windows machine. > >

Re: Mcopy not removing the "^M" character

2004-11-08 Thread Richard Lyons
On Monday 08 November 2004 19:00, Eric Dickner wrote: > > --- David Jardine <[EMAIL PROTECTED]> wrote: > > > If you're putting something on to a windows machine, > > wouldn't > > mcopy automatically use the dos CR-LF? > > I was trying to remove the CR-LF so the /etc/hosts > file lookup wouldn'

Re: Mcopy not removing the "^M" character

2004-11-08 Thread Eric Dickner
--- David Jardine <[EMAIL PROTECTED]> wrote: > If you're putting something on to a windows machine, > wouldn't > mcopy automatically use the dos CR-LF? I was trying to remove the CR-LF so the /etc/hosts file lookup wouldn't be messed up. I never did get "mcopy -T" (or any option or combinatio

Re: Mcopy not removing the "^M" character

2004-11-08 Thread David Jardine
On Mon, Nov 08, 2004 at 07:01:41AM -0800, Kenward Vaughan wrote: > On Mon, Nov 08, 2004 at 05:46:08AM -0800, Eric Dickner wrote: > > Hello, > > > > I have a text file that I burned onto a CD on a > > windows machine. If you're putting something on to a windows machine, wouldn't mcopy automatica

Re: Mcopy not removing the "^M" character

2004-11-08 Thread Thomas Adam
--- Kenward Vaughan <[EMAIL PROTECTED]> wrote: > Just for the heck of it, try using just t or a instead of both options > (maybe it's brain dead and does one followed by the other, undoing > itself... ?) If the intended target audience is for Windows users, I would actually change all the files

Re: Mcopy not removing the "^M" character

2004-11-08 Thread Kenward Vaughan
On Mon, Nov 08, 2004 at 05:46:08AM -0800, Eric Dickner wrote: > Hello, > > I have a text file that I burned onto a CD on a > windows machine. I used "mcopy" with the t, a and T > options to try and get rid of those "^M" characters (I > forget if that is the line feed or carriage return). > > The