Convert UNIX formated text files to DOS formated?

Diez B. Roggisch deets at nospam.web.de
Tue May 12 22:49:04 CEST 2009


walterbyrd schrieb:
> I have about 150 unix formated text files that I would like to convert
> to dos formated.
> 
> I am guessing that I loop though each file in the directory, read each
> line and conver the last character, then save to a file with the same
> name in another directory.
> 
> I am not really sure what I convert the last charactor to.

Use recode.

Diez



More information about the Python-list mailing list