-
-
Save stingray82/a83cb15f49b4c468f3e51815dcc3bd65 to your computer and use it in GitHub Desktop.
Recursively Change Line Endings (Windows)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM On Unix you would do this: find ./ -type f -exec dos2unix {} \; | |
| REM After installing dos2unix.exe in Windows, you can create a small bat script with the below in it to | |
| REM recursively change the line endings. Careful if you have any hidden directories (e.g. .git) | |
| for /f "tokens=* delims=" %%a in ('dir "C:\Users\username\path\to\directory" /s /b') do ( | |
| "C:\Program Files\unix2dos.exe" %%a | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment