[SunHELP] Those damn ^M's

Bashar sunhelp at sunhelp.org
Fri Nov 2 15:24:55 CST 2001


	perl -i.bak -npe 's/\r\n/\n/g' <file>

	this will do a backfile of the original file named <file>.bak if
you dont want a backup remove the .bak

                    KuwaitNet Communications Inc.
        Bashar A AlAbdulhadi            UNIX Systems Administrator
        bashar at kuwaitnet.net            http://www.KuwaitNet.net
        Phone: (KW) +965-2647060        Fax: (KW) +965-5337060
        Phone: (KW) +965-807060         Fax: (US) +801-4373934
        ICQ UIN: 19907999               Pager: (KW) 9327060
        IRC: Big @ #Kuwaitnet           YaHoO ID: kuwaitnets

           "Quality, Stability, 24 Hours Tech. Support"
                          "Think KuwaitNet"

On Fri, 2 Nov 2001, John_Kennedy wrote:

> I know this is an easy one but I just can't think at the moment...
> What is the easiest way to get rid of those anoying ^M (<control>-M)
> chararacters.
> Thanks,
> John Kennedy
> --
> "I fear all we have done is to awaken the sleeping giant and fill
> him with terrible resolve"
> - Japanese Adm. Isoroku Yamamoto after the attack on Pearl Harbor
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>




More information about the SunHELP mailing list