rename files

In order to mass rename files, we can use the rename command.

# to modify the extension
rename -v 's/\.jpeg$/.jpg/' *
rename -v 's/\.bak$//' *

# to modify the case
rename -v 'y/A-Z/a-z/' *

# to dry-run
rename -nv "chanson-de-la-semaine" "song-of-the-week" *

The rename command is written in Perl, the supported regular expressions are thus from Perl.