[plug] Netscape Default Profile...

Steve Grasso steveg at calm.wa.gov.au
Tue Feb 22 10:21:51 WST 2000


>BTW: Any idea how I use sed to strip out ^M's (artefact of DOS txt files) from
>a text file? I can do it in Perl, but for a simple altering, am wondering how
>to do it in sed. It's basically the sed regexp to match ^M that has me
>stumped...

It's just a one-liner, IMHO stick with perl:

perl -p -i.tmp -e 's/^M//g;' filename.txt

(where ^M = Ctrl-V Ctrl-M)

Steve




More information about the plug mailing list