Convert line-endings for whole directory tree
Posted on July 19, 2017
Here is a one-liner that recursively replaces line endings and properly handles whitespace, quotes, and shell meta chars.
Install dos2unix
$ brew install dos2unix
Usage
$ find ./ -type f -exec dos2unix {} \;