find . -type f \( -iname '*.css' -o -iname '*.html' \) \! -path "*images*" -exec dos2unix {} \;
- Finds all files with a .css or .html extension, starting from the current working directory.
- Ignores anything in a directory including the word images.
- Then executes dos2unix on anything that matches.