POCH-7003 BEATout!

2008-09-24

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

| 23:30

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
トラックバック - http://d.hatena.ne.jp/poch-7003/20080924/1222266632