Renaming files on Linux systems is usually handled by the mv
(move) command. The syntax is just mv old.txt new.txt
. Simple enough, but what if we have multiple files that need to be renamed at once, even hundreds of them? The default mv utility can't handle renaming more than one file unless we do a bit of scripting.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-rename-multiple-files-on-linux