help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interative batch query-replace question


From: Andreas Röhler
Subject: Re: Interative batch query-replace question
Date: Sat, 1 Dec 2007 09:19:06 +0100
User-agent: KMail/1.9.5

Am Samstag, 1. Dezember 2007 02:00 schrieb Ke Lu:
> > Do want to change filenames in a directory or the contents of files in
> > that directory?
>
> I don't want to change filenames.
> I want to change contents of files in a directory.
>

So let's start with the first task:

If you want to add a "2" at all endings in that directory,

as  "jp.co" => "jp.co2" let's assume,

you can perform this

with

M-x wdired-change-to-wdired-mode

M-x query-replace-regexp $ RET 2 !

If everything looks fine, do C-c C-c to write down your
changing or quit (with C-c ESC or C-d).

With quit nothing is changed.

Andreas Röhler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]