On removing ^M
Shantanoo Mahajan
shantanoo at gmail.com
Sun May 8 18:15:05 PDT 2005
+++ Fafa Hafiz Krantz [freebsd] [08-05-05 14:20 -0500]:
|
| 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!
- Check out the archive. This question is asked many times before.
- Answer: 'col -bx < old.file > > new.file'
Regards,
Shantanoo
More information about the freebsd-questions
mailing list