Find all files with the extension .txt in the current directory and execute the command to replace all occurrences of word1 with word2, creating a backup file with the extension .bak.
find "./" -name '*.txt' -exec sed -i.bak 's/word1/word2/g' {} \;