Emacs Dired rename many files

This can easily be done using dired: Enter a dired view of your directory Switch to writable dired mode (wdired-change-to-wdired-mode): C-xC-q Edit the file names listing as if it were a normal buffer (for example using a keyboard macro or a rectangular selection or query-replace). Here is a regexp-based solution: C-M-%\(VAR.\)_\(..\)RET\2_\1RET Finish editing (wdired-finish-edit): C-xC-s … Read more

In Emacs dired, how to find/visit multiple files?

In Emacs 23.2 and higher, the dired-x.el module is available, and it gives you access to a command that does exactly what you want. After you load it (just (load “dired-x”), normally), you’ll be able to invoke the function dired-do-find-marked-files. Here’s its built-in documentation: (dired-do-find-marked-files &optional NOSELECT) Find all marked files displaying all of them … Read more