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

Re: mutt -- was Re: Why use fakeroot when compiling kernel?



On Thu, Jun 28, 2001 at 10:03:15PM -0500, will trillich wrote:
...
> -- 
> DEBIAN NEWBIE TIP #56 from Vineet Kumar <debian-user@virtual.doorstop.net> 
> :
> Troubled by DOS-FORMAT OR MAC-FORMAT TEXT FILES? Here's another
> way to deal with those troublesome ^M characters: a simple
> 	tr -d '\015' < dos.file
> should do the trick.  While we're on the subject, a Mac file
> can be converted with
> 	tr '\015' '\012' < mac.file
> You can do all your CR/LF translations with tr as long as you
> can remember that macs use CRs, *nices use LFs, and DOS uses
> CRLF.

I object to classifying this as a NEWBIE tip:) There are better and
simpler ways to achieve this, the tip as is will only scare people,
fails to deal with the eof char, and doesn't *replace* the original
file (the thing newbies are likely to expect).  Better advice to use
one of the many special programs for this simply task.


-- 
groetjes, carel



Reply to: