Archive for September, 2007

Clean up CTRL-M ( ^M ) chars

Saturday, September 15th, 2007
using VI while the file is open :  :%s/^M$//g
using sed :   cat file | |sed 's/^M$//' > newfile
using dos2unix :  http://www.linuxcommand.org/man_pages/dos2unix1.html
using tr :   tr -d "\015" < filename > newfile