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