If you program on a Windows box you'll probably find these tools useful. LineConv is comprised of two tools. unix2dos converts UNIX-like LF line endings to DOS-like CRLF line endings. The result is that you'll be able to access the files from more ordinary text editors like Notepad without having to resort to more power-hungry editors like Visual Studio. dos2unix does the inverse. Both were inspired by their respective Python equivalents.
You can grab the version 1.0 binaries here
and the GPLed Visual Basic source here
.
The tools are written using the .NET Framework 2.0. Vista has this preinstalled. If you're on an earlier operating system and don't already have it installed, you can grab the installer from the Microsoft Download Center
.
I'm thinking of implementing a recursive feature in future releases, so that one can change the line endings of all applicable files in a single directory or entire directory tree.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.8) Gecko/20071012 BonEcho/2.0.0.8 (ayakawa SSE2-PGU)
Laptop: Turion 64 X2 @ 2GHz, 2GB DDR2-667, 100GB HD, ATI Radeon X300, 15" LCD, Seven Professional RTM