convert all line endings to unix

C++
find . -type f -exec dos2unix {} \;
Source

Also in C++: