Convert files formats: Windows to Unix

Convert Windows formatted files to Unix format per directory recursively

12/02/2016 Available in es Useful CommandsUnixWindows

If you are developing from a Windows environment to a Unix target environment, most likely you have had this issue: You install source files in Windows format in your Unix environment.

There is a way quite simple to convert all your files from Windows to Unix format:

find . -type f -print0 | xargs -0 dos2unix