5.9.3.5 Dired Search & Replace (Search & Replace›)

Search and replace in multiple marked files using the “/ Search & Replace›” menu (casual-dired-search-replace-tmenu) in casual-dired-tmenu. This will raise a menu of Dired commands that will work on marked files.

images/casual-dired-search-replace

While most Dired commands use Emacs-style regular expression syntax ((elisp)Regular Expressions), there are commands that use grep-style regex syntax instead as it makes direct calls to grep. This syntax is dependent on the grep implementation that is installed and used by Emacs.

KeyLabelCommandNotes
C-sI-search…dired-do-isearch
M-sI-search regexp…dired-do-isearch-regexp
sSearch first regexp match…dired-do-search
rQuery regexp and replace…dired-do-query-replace-regexp
gFind regex…dired-do-find-regexpgrep regex
GFind regex and replace…dired-do-find-regexp-and-replacegrep regex
fFind in files (rgrep)…rgrepgrep regex