On Fri, Nov 28, 2008 at 8:57 PM, John Victor <john / sflistdb.com> wrote:
> I have some text that I just realized is screwing everything up because
> it contains the ^M character (control-M). I have tried using all kinds
> of regexp expressions to find and remove it but it is evasive :-)
>
> What is the best way to find and remove the pesky ^M character from
> text?
>
> vic
> --
> Posted via http://www.ruby-forum.com/.
>
>
A simpler method, applicable if the c-m is coming from line ends

 ruby -ne 'puts chomp'  xxx > yyy

HTH
Robert


-- 
Ne baisse jamais la te, tu ne verrais plus les oiles.

Robert Dober ;)