Friday, May 8, 2009

emacs: Renaming multiple files at once with a regular expression

M-x dired
(navigate to the folder)
M-x wdired-change-to-wdired-mode
M-x replace-regexp
(enter search and replace expressions)
C-c C-c

Which writes out the changes to the directory.

1 comment:

Anonymous said...

Thanks a lot, just what I was looking for. Saved me many, many minutes of typing.