Dired: replace text in multiple files We recently looked at replacing text in buffers. Using dired, it is possible to do this in many files in a directory. Start dired and mark files as described here. Then use Q to run query-replace on all marked files. Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)