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

Re: stripping the ^M



At 00:46 1999-04-09 -0400, Cimarron Ryan wrote:
>Just for kicks, I decided to try and strip the nasty ^M from windows/dos
>text files using sed.
>
>$ sed -e s/^M//g filename

I don't use sed, but carriage returns are generally represented by \r. So
try this:

$ sed -e s/\r//g filename



 Tony
 --
 Anthony E. Greene <agreene pobox com>
 Homepage and PGP Key: <http://www.pobox.com/~agreene/>



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