Find all files with the extension .txt, excluding those ending with ~, and replace the word "word" with "replacement-word" in all of them.
find . -name "*.txt" | grep -v '~$' | xargs sed -i 's/word/replacement-word/g'