Find all files with a ".txt" extension in the current directory and its subdirectories, and replace all occurrences of "string" with "replacement" in each file.
find . -iname '*.txt' -exec sed -i 's/string/replacement/g' {} +