The following is the basic syntax for renaming commands.
1 Rename [-v-n-f] <pcre> <files>
<pcre> is a Perl-compatible regular expression that represents the file to be renamed and what to do. The regular expression is in the form of ' s/old-name/new-name/'.
The '-V ' option displays the details of the file name change (for example: XXX renamed to YYY).
The '-n ' option tells the rename command to show that the file will be renamed without actually changing the name. This option is useful in situations where you want to simulate changing the file name without changing the file name.
The '-f ' option enforces overwriting of existing files.
Example: uppercase to lowercase, and vice versa
--------------------------------------------------
Sometimes you want to change the case of the file name, you can use the following command.
Change all files to lowercase:
# rename ' y/a-z/a-z/' *
Change all files to uppercase:
# rename ' y/a-z/a-z/' *
How Linux renames multiple files