Recursively converting files from dos line endings to unix line endings
Try find . -name "*" -type f -exec dos2unix {} \;.



In case dos2unix is not available on your system, you can use the following script (save as dos2unix and set as executable):

#!/bin/sh

perl -pi -e 's/\r\n/\n/;' $*