One liner to convert windows line endings to unix
I was looking for an easy, in place solution to do this and came up with this for OSX – other OSs YMMV (the sed implementation is a little temperamental on OSX). You can fire this in a single line in terminal and can easily extend the find command to suite your match criteria e.g. find -iname "*.cpp" -or -iname "*.h" -or -iname "*.inl"
for FILE in $(find . -iname "*.cpp"); do sed -i '' 's/.$//' $FILE; done;
