find . -type f -print0 | xargs -0 dos2unix
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:
I got it, of course, form https://stackoverflow.com/questions/11929461/how-can-i-run-dos2unix-on-an-entire-directory