まとめて一括拡張子変換
たとえばあるディレクトリ配下の.phpファイルを.htmlに変える場合(サブディレクトリのファイル含む)
↓
# find . -type f -name "*.php" -print0 | while read -r -d '' file; do mv "$file" "${file%%.php}.html"; done
↓
# find . -type f -name "*.php" -print0 | while read -r -d '' file; do mv "$file" "${file%%.php}.html"; done
スポンサーサイト