Find all files in the current directory (./) with a .txt extension, and execute the command 'sed -i 's/old/new/g' {}' on each of them.
find ./ -maxdepth 1 -name "*.txt" -exec sed -i 's/old/new/g' {} \;