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