Recursively Change Line Endings

So, very rarely I need to change the line endings for a large set of files scattered across a bunch of directories.  Sometimes there are few enough files that I just do it manually, but today I really wanted to do a large batch of them recursively.  I wound up using this in a terminal:

cd /path/to/change/line/endings

find . -type f -exec perl -pi -e 's/\r\n?/\n/g' {} \;

Worked like a charm.  Found this here.

Copyright 1999 - 2008 Elliott Kimball Larsen