views:

24

answers:

1

I am on a Mac OS X with Snow Leopard.

I need to batch convert a lot of .htm files that were originally created on Windows to UTF-8 with Unix (LF) line breaks.

I can batch rename all of the files .html with NameMangler.

I can do a search/replace of all of the files to update all hyperlinks to reflect the extension change to .html using TexFinderX.

Now the last step is to do a batch convert to UTF-8 and with Unix (LF) line breaks.

Does anyone know of an app that can do this? I hope that I don't have to manually open each of the files in a text editor and save each one individually. I am afraid that I might accidentally miss some of the files…and it would take a long time to do this.

TIA, Linda

+1  A: 

You'll want to check out this dos2unix port for MacOS. Haven't used it myself since I don't own a Mac, but dos2unix is the general unix utility for conversion of windows files to unix files.

Bryan
Ned Deily