in reply to CHOMP VS. CHOP

When ever I have had to deal with those pesky ^M's
I have found the line  s/^M/\n/g; is always nice :)



lindex
/****************************/ jason@gost.net, wh@ckz.org http://jason.gost.net /*****************************/

Replies are listed 'Best First'.
RE: RE: CHOMP VS. CHOP
by nuance (Hermit) on Aug 02, 2000 at 20:48 UTC
    That would change all your ^M^J into ^J^J i.e. every newline has just become two newlines. Fine if that's what you're trying to achieve, if not surely
    s/^M//g;
    would be better.

    Nuance