Date: Wed, 15 Mar 2000 10:53:41 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: leon cc: djgpp AT delorie DOT com Subject: Re: search and replace on multiple files In-Reply-To: <38CEBD63.2892212F@caresystems.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 15 Mar 2000, leon wrote: > Go to the command prompt, and then to the directory containing > the files. do 'vim *.*' (w/o the quotes of course), then map a > key, say, z as ':map z :%s/hello/good by/g:w m>:nZ' along with the mapping ':map Z z' Seems like it's too complicated in vim. Emacs does this much easier (IMHO). Or use Perl, as someone suggested, if you are sure that all files need to be unconditionally edited. For simple non-interactive replaces, a simple batch file or a shell script which loops through all the files and edits them with Sed would be enough as well.