rename

Perl-powered batch file renaming utility with regex support

brewmacoslinux
Try with needOr install directly
Source

About

Perl-powered file rename script with many helpful built-ins

Commands

rename

Examples

Replace spaces with underscores in filenames$ rename 's/ /_/g' *.txt
Convert filenames to lowercase$ rename 'y/A-Z/a-z/' *
Add prefix to all files with extension change$ rename 's/^/archived_/' *.log