Find all files with the extension .txt in the current working directory and execute the command 'sed -i 's/foo/bar/g' {}' on each of them.
find $(echo -n "$(pwd)") -name "*.txt" -exec sed -i 's/foo/bar/g' {} \;