1. 程式人生 > >rename批量替換檔名

rename批量替換檔名

問題:ubuntu的rename,批量替換檔名的方法是什麼?

ubuntu的rename版本是是perl 版本

rename ‘s/hdplus/hwvga/’ hdplu*
rename ‘s/引數1/引數2/’ 引數3
引數1:hdplus(替換前的字串)
引數2:hwvga(替換後的字串)
引數3:hdplu*(需要替換檔名的檔案,即用於換名的檔案)

替換結果:把該資料夾中hdplu開頭的檔案,換成hwvga.