in reply to dos2unix line endings on Windows

... or download some existing dos2unix tool ...

I actually use 'dos2unix.exe', which ships with Cygwin - though I didn't install Cygwin just for that tool (nor would I recommend doing so).

Despite the general warnings about "re-inventing wheels", there's no denying that one does learn more from doing just that, than from simply using pre-existing tools (as you well understand :-)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: dos2unix line endings on Windows
by Sinistral (Monsignor) on Feb 11, 2010 at 13:32 UTC

      the one liners in that last link won't work on Windows w/o setting PERLIO environmental variable: set PERLIO=perlio . took me 5 hours to find this out *blush*

      the Perl script probably will, but I didn't try it

        Thanks!!!! This tip was really helpful :)