Emacs: Batch Rename Files by Regex

By Xah Lee. Date: . Last updated: .

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

Call dired. To go to the directory.

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

Then, just edit the file names.

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

When done, do one of:

Dired topics

Like it? Buy Xah Emacs Tutorial. Thanks.

or, buy something from Best Keyboard for Emacs