Find all files with the .txt extension in the current working directory and execute the sed command to replace the pattern with the replace string in each file.
find $(echo $PWD)/* -name '*.txt' -exec sed -i 's/pattern/replace/g' \{\} \;