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

  1. Emacs: File Management (dired tutorial)
  2. Emacs: Dired Customization
  3. Emacs: Find Replace Text in Directory
  4. Emacs: Batch Rename Files by Regex
  5. Emacs: Sort File by Time, Size, in Dired
  6. Emacs: Open File in External App
  7. Emacs: Rename File from Space to Hyphen/Underscore
  8. Emacs: Convert Image Files in Dired
Like it? Buy Xah Emacs Tutorial. Thanks.