To convert all files:
$ find . -type f -name -exec dos2unix {} \;
To convert specific files (by type):
$ find . -type f \( -name "*.php" -o -name "*.txt" -o -name "*.css" \) -exec dos2unix {} \;
Engage your cerebral cortex
To convert all files:
$ find . -type f -name -exec dos2unix {} \;
To convert specific files (by type):
$ find . -type f \( -name "*.php" -o -name "*.txt" -o -name "*.css" \) -exec dos2unix {} \;