Applied Users Forums

Hardware & Infrastructure => Open Source => Topic started by: Bloody Jack Kidd on March 16, 2010, 10:27:52 AM

Title: Cleaning up ASCII Text files
Post by: Bloody Jack Kidd on March 16, 2010, 10:27:52 AM
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