App-rename
view release on metacpan or search on metacpan
bin/rename.PL view on Meta::CPAN
# rename _-separated filenames to camel-case, using git mv
rename --git 's/([a-z]+)_/\u\L$1/g' *.c
# or just renaming all the *.yml files to *.yaml
rename -g 's/\.yml$/.yaml/ *.yml
With the --command parameter you can make rename do other interesing
stuff like:
# make thumbnails in PNG format of all JPEG file
rename 's/\.jpg/-thumb.png/' -C 'convert {} -resize 120x120 {}' *.jpg
=head1 ENVIRONMENT
Two environment variables are used, B<SIMPLE_BACKUP_SUFFIX> and
B<VERSION_CONTROL>. See L</OPTIONS>.
=head1 SEE ALSO
mv(1) and perl(1)
( run in 3.017 seconds using v1.01-cache-2.11-cpan-df04353d9ac )