# ファイルの拡張子を一括置換 サブディレクトリの中も含めてファイルの拡張子を一括置換 ```sh find . -depth -name "*.md" -exec sh -c 'mv "$1" "${1%.md}.txt"' _ {} \; ```