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