複数ファイル一括リネーム

Linuxでrenameってコマンド意外と使われてないなぁ〜と感じたので.

カレントディレクトリの*.htmを*.htmlへリネーム

$ rename .htm .html *.htm

カレントディレクトリのfile10〜file99をfile010〜file099にリネーム

$ rename file file0 file??

htmlディレクトリ以下の*.htmファイルを*.htmlへリネーム

$ find html/ -type f -name *.htm |xargs rename .htm .html