インストール
brew install rename
コマンド例
3桁
rename 's/\d+/sprintf("%03d",$&)/e' *
4桁
rename 's/\d+/sprintf("%04d",$&)/e' *
5桁
rename 's/\d+/sprintf("%05d",$&)/e' *
brew install rename
rename 's/\d+/sprintf("%03d",$&)/e' *
rename 's/\d+/sprintf("%04d",$&)/e' *
rename 's/\d+/sprintf("%05d",$&)/e' *