Find all files in the current directory with a .txt extension, and replace all occurrences of "oldword" with "newword" in each file.
find . -maxdepth 1 -name "*.txt" -exec sed -i "s/oldword/newword/g" {} \;