Find all files in the /tmp directory with a .txt extension and execute the sed command to replace the string with the replacement in each file.
find /tmp -name \*.txt -o -exec sed -i 's/string/replacement/g' {} \;