Find all directories in the current directory, then find all files in those directories, and execute the command 'sed -i 's/words/string/g' {}' on each file.
find $(ls -d */) -type f -exec sed -i 's/words/string/g' {} \;