d find . -iname "*.txt" -exec bash -c 'mv "$0" "${0%\.txt}.md"' {} \;