Cleaning up ASCII Text files

Started by Bloody Jack Kidd, March 16, 2010, 10:27:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bloody Jack Kidd

often text files provided from DOS / Windows machines, when opened in a Unix/Linux environment, are full of lines ending with ^M.  While this does not hurt anything, it's ugly and annoying esp. if you are editing those files.

the dos2unix / unix2dos utility is designed to clean this up, and it's very easy

my_unix_host# dos2unix dosfile.txt

done
Sysadmin - Parallel42