Here’s a great tip from learn emacs on how to change a group of file names:
Need to change alot of file names in a directory at once? Dired to the rescue!
M-x dired
C-x C-q (to toggle dired buffer/dir read-only)
query-replace (or any other method to alter file names)
C-c C-c (save changes)
Done!https://t.co/kLBlnpGdGq #Emacs
— learn emacs (@learnemacs) April 5, 2019
I’ve been doing this for so long that I almost didn’t bother writing about it because I thought of it as something everyone knows. But perhaps not and that’s too bad because it’s a very useful technique. I use it even to change the name of a single file because the workflow is easy to remember and execute. Here’s an Emacs Rocks! video where Magnar Sveen uses the idea in combination with multiple cursors.
It’s definitely a habit worth cultivating if you’re not already using it. It will save you time and effort when you need to rename a set of files.