Find all files with the extension .txt in the current directory and its subdirectories, and replace all occurrences of the word WORD with the word TEXT in each file.
find . -iname '*.txt' -exec sed -i -e 's/WORD/TEXT/g' {} \;