in reply to Re: Cleaning Up Text Files
in thread Cleaning Up Text Files

Well that code works fine for me but you can try this one too and see what happend...
perl -i.bak -pne 's/^M//g' file
I only submit the -n option

Replies are listed 'Best First'.
Re: Re: Re: Cleaning Up Text Files
by thelenm (Vicar) on Oct 25, 2002 at 15:46 UTC
    But if you're already using -p, there's no need for -n as well. perlrun says, "A -p overrides an -n switch." So adding -n actually does nothing at all.

    -- Mike

    --
    just,my${.02}