by Don_HH2K » Mon 22 Oct, 2007 9:22 pm
If you program on a Windows box you'll probably find these tools useful. LineConv is comprised of two tools. [tt]unix2dos[/tt] 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. [tt]dos2unix[/tt] 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: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4