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, > > > wou

Re: Mcopy not removing the "^M" character

2004-11-08 Thread Kenward Vaughan
onto a CD on a > > > windows machine. > > If you're putting something on to a windows machine, wouldn't > mcopy automatically use the dos CR-LF? I don't think this happens. The OP wanted to transfer from the Windoze environment anyway. He might find an easier solut

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

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 ge

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

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 th

Mcopy not removing the "^M" character

2004-11-08 Thread Eric Dickner
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). They seem to be gone if I look at the result with "

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
or that file. Initially I tried copying directly from Debian > to a DOS formatted floppy but for some reason this made the floppy > inaccessible to DOS / Windows. Soemone then suggested using "mcopy" > which is supposed to do the job. > > I can't figure how to use it

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 cour

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"

Mcopy

1999-07-21 Thread Doug Young
then suggested using "mcopy" which is supposed to do the job. 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" Of cou

mcopy and hdimage

1997-05-14 Thread Ken Lauffenburger
a file to the hdimage I get the following: leisure# mcopy config.emu g: Copying config.emu Short write 0 instead of 181 A directory listing of hdimage gives me the following: leisure# mdir g: Volume in drive G is DOSEMU Volume Serial Number is 1234-5678 Direc