Subscribe to

I found a useful article that explains how one can use emacs to find/replace in several files at once:

One Response to “Find and replace in multiple files using emacs”

  1. on 12 Feb 2007 at 6:24 pmAlan Iwi

    Sounds useful, thanks, I’ll take a look. Without it I’d normally use a perl one-liner:

    perl -p -i -e ‘s/pattern/replacement/g’ file1 file2 …

    (or “-i.bak” if you’re feeling a little more timid/sensible)

Leave a Reply

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image