- zsh
- target is current directory
-f
from, zsh regular expression-t
to, zsh regular expression--notest
, finally rename the files
% rename -f test -t my
test-hoge -> my-hoge
test-fuga -> my-fuga
test-piyo -> my-piyo
% rename -f 'glyphicons_[0-9]##_' -t ''
glyphicons_000_glass.png -> glass.png
glyphicons_001_leaf.png -> leaf.png
:
: