Anything like dos2unix for Windows?
carriage-return, dos2unix, linefeed, newline, windows
Solution
You can use Notepad++.
The instructions to convert a directory recursively are as follows:
- Menu: Search -> Find in Files...
- Directory = the directory you want to be converted to Unix format, recursively. E.g., C:\MyDir
- Find what = `\r\n`
- Replace with = `\n`
- Search Mode = Extended
- Press "Replace in Files"
Problem
I have some shell scripts created on Windows. I want to run `dos2unix` on them. I have read that `dos2unix` works on Linux. Is there a way that I can convert my files to having Unix newlines while working on Windows?