Emacs: Batch Rename Files by Regex

By Xah Lee. Date: . Last updated: .

This pages shows you how to rename multiple files in emacs.

Go to the directory first, by calling dired. 〔➤see Emacs: File Management (dired tutorial)

When in dired, call dired-toggle-read-onlyCtrl+x Ctrl+q】.

Then, just edit the file names.

When done, do one of:

While in wdired, you can use find replace. For example, call query-replace or call query-replace-regexp. 〔➤see Emacs: Find and Replace Commands〕 〔➤see Emacs: Regex Tutorial

Dired topics

Like it? Buy Xah Emacs Tutorial. Thanks.

or, buy something from my keyboard store.