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?
> > 
> > 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 combination of options)
> > to do it.  Instead I used the KDE file manager as root
> > (something I ususally use "nano" and a shell) and cut
> > and paste.  It was smart enough to strip them off.
> 
> 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 > unixfile

seems to do it.

> 
> -- 
> richard
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

-- 
David Jardine

"Running Debian GNU/Linux and
loving every minute of it." -Sacher M.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to