using Lloyd Brookes's renamer
Use renamer -d -f foo.bar -r bar.foo * to simulate the renaming of a file named foo.bar to a file named bar.foo. If the results are satisfactory, use renamer -f foo.bar -r bar.foo * to actually perform the renaming.
explanation
- The
-doption specifies that a dry run wiil be performed. - The
-foption specifies the string or regular expression literal to find for renaming. - The
-roption specifies the string that will replace the existing name.
licensing
No rights reserved: CC0 1.0.
prior work
- The explanation of the renamer options was introduced to me by the Renamer CLI docs page on the renamer wiki on GitHub.
- The importance of including the
-doption to perform a dry run was introduced to me by the Disclaimer section of the renamer README on GitHub. - The method of renaming files was introduced to me by the Synopsis section of the renamer README on GitHub.