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' < dosfile > unixfile
> 
> seems to do it.
[...]

All goes to show I should RTFM before posting.  I had only used tr for 
mac-unix and unix-mac before, so I was guessing.  -d is obviously 
logical (after reading the man page).

-- 
richard


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

Reply via email to