On removing ^M

Fafa Hafiz Krantz fteg at london.com
Sun May 8 12:20:19 PDT 2005


Good day all!

I am aware of the port unix2dos (dos2unix) as a tool to
remove ^Ms from ASCII files.

But if you execute dos2unix in a directory where some files
contain ^M (CR/LF) and some files don't (CR), then dos2unix
will make a mess of those files who don't.

I am wondering what is needed (what tool or what code) to
do a mass (recursive) removal of ^Ms?

Thanks!

--

Fafa Hafiz Krantz
  Research Designer @ http://www.home.no/barbershop
  Enlightened @ http://www.home.no/barbershop/smart/sharon.pdf


-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



More information about the freebsd-questions mailing list