[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mcopy not removing the "^M" character



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



Reply to: