Find all files with the extension .txt in the current directory and its subdirectories, and replace all numbers with the same number plus 2 using the sed command.
find ~ -type f -name \*.txt -exec sed -i 's/[0-9]\+/&2/g' {} \;