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

Re: Mcopy

1999-07-21 Thread Doug Young
Thanks Tyler another example of the problems newbies face with present documentation - Original Message - From: tyler spivey <[EMAIL PROTECTED]> To: Doug Young <[EMAIL PROTECTED]> Cc: ; Sent: Thursday, July 22, 1999 1:17 AM Subject: Re: Mcopy > its &#x

Re: Mcopy

1999-07-21 Thread tyler spivey
its 'a:' not '/dev/fd0; [EMAIL PROTECTED] SDF Public Access UNIX System - http://sdf.lonestar.org On Wed, 21 Jul 1999, Doug Young wrote: > A number of people who have been trying to help me figure out > configuration issues have asked me to email them a copy of this > or that file. Initially I

Re: Mcopy

1999-07-21 Thread Samuel R. Scarano
> My mcopy manual tells me to try "mcopy sourcefile targetfile". > Targetfile is a MS-DOS drive letter like "a:" :-) > > mcopy -t /resolf.conf a: Or the other way around -- sourcefile can be a drive-letter (and may contain a full path, too, of course) to copy from the floppy. It couldn't

Re: Mcopy

1999-07-21 Thread Stephan Engelke
On Wed, Jul 21, 1999 at 07:23:04PM +1000, Doug Young wrote: > I can't figure how to use it though . MAN mcopy says to type > something like eg "mcopy -t/resolv.conf /dev/fd0" but that only gives > me "Can't open /dev/fd0/resolv.conf: Not a directory" My mcopy manual tells me to try "mcopy so