Find all files with the extension .txt in the current directory and its subdirectories, and replace the word "find" with the word "replace" in each of those files.
find ~ -iname '*.txt' | xargs sed -i 's/find/replace/g'