2008-09-24
複数ファイル一括リネーム
Linuxでrenameってコマンド意外と使われてないなぁ〜と感じたので.
$ 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
エレコム
購入: 1人 クリック: 4回
購入: 1人 クリック: 4回
コメントを書く
トラックバック - http://d.hatena.ne.jp/poch-7003/20080924/1222266632


