Find all files with the extension .txt in the entire file system and execute the command to replace all occurrences of "search" with "replace" in each file.
find / -type f -name "*.txt" -exec sed -i 's/search/replace/g' {} \;