Find all files with a ".txt" extension, print them, and use xargs to run the sed command to replace all occurrences of "old-word" with "new-word" in each file.
find ~ -type f -name '*.txt' -print0 | xargs -0 sed -i 's/old-word/new-word/g'