rename

Rename multiple files. Note: this page refers to the command from the prename Fedora package. More information: https://manned.org/man/prename.

rename 's/foo/bar/' *

rename -n 's/foo/bar/' *

rename -f 's/foo/bar/' *

rename 'y/A-Z/a-z/' *

rename 's/\s+/_/g' *