
Here's the command I would invoke to rename every file in the current directory that currently ends with the extension JPG, or. It's usage is very simple, you just specify the current file extension, and the new desired file extension, and it will move every file that matches the current file extension to the new extension. Hopefully you'll like this Unix shell script that I've named mmv, for multiple move. Sure, you can change all these filenames manually, but hey, this is Unix, there must be a better way, right? Usage I kept running into a combination of problems, including file extensions ending in uppercase characters, to files named *.htm that I wanted to renamed to *.html. Many years ago I created a Unix shell script to solve just this problem. In particular, you'd like to be able to change the extensions of a large number of files, such as from *.JPG to *.jpg (changing the case of each file extension from upper case to lower case), or something similar. You're on a macOS, Unix, or Linux system, and you'd like to be able to rename a large number of files at once. Summary: In this post I share a Unix/Linux shell script that can be used to rename multiple files (many files) with one shell script command.
