Bash: How to replace a string in a directory recursively

Combine find, xargs and sed.

find . -name "*.css" | xargs sed -i 's/BEFORE/AFTER/g'