Removing ^M

Michal Vitecek fuf at
Wed Oct 9 13:22:30 CEST 2002

 if your system has vim installed you could do:
    $ vim file.html
    :set ff=unix
 this changes the fileformat from whatever it was to unix (removing ^M
 characters) and writes the changed file and quits vim.

Sean 'Shaleh' Perry wrote:
>> There's a program called dos2unix that will do this. From your mail
>> headers it looks to me like you have a Unix/Linux system in which case
>> it may already be installed. If not do a google search on dos2unix.
>another possibility is fromdos (and its brother todos).

		fuf		(fuf at

More information about the Python-list mailing list