Search code examples
windowsline-endings

Convert line-endlings for whole directory tree to \r\n


As the question Convert line-endlings for whole directory tree (Git) but to Windows \r\n

Only text files (eg: .html, .css, .js, .php)

Assume complex scenarios, such as files with mixed line endings (Unix and Windows)


Solution

  • Here's find. Here's unix2dos. Same solution applies.