From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "md3bs" Newsgroups: gmane.emacs.help Subject: Re: multiple find and replace on windows using (gnu) find Date: Fri, 13 Oct 2006 13:33:27 +0100 Organization: University of Hertfordshire Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1160746832 14810 80.91.229.2 (13 Oct 2006 13:40:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2006 13:40:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 13 15:40:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GYNH1-0005n8-R7 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Oct 2006 15:40:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GYNH1-0004I5-Dw for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Oct 2006 09:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!193.201.147.81.MISMATCH!feed.xsnews.nl!feeder.xsnews.nl!217.145.39.3.MISMATCH!talisker.lacave.net!lacave.net!news.stack.nl!feeds.news.ox.ac.uk!news.ox.ac.uk!feed2.jnfs.ja.net!jnfs.ja.net!news.herts.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: vsg.feis.herts.ac.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Original-Xref: shelby.stanford.edu gnu.emacs.help:142389 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38010 Archived-At: Thanks Martin, I've tried this but I ran into problems. find . /( -name "*html" /) -exec ls -ld {} /; -c: line 1: syntax error near unexpected token `//(' -c: line 1: `gnufind.exe . //( -name "*html" //) -exec ls -ld {} //;' The problem lies with the ls command handling spaces in file names ( see following tests ). find . -maxdepth 1 \( -name "*html" \) .\test with space.html .\test.html gnufind . -maxdepth 1 \( -name "*html" \) -exec ls ld {} \; ls: ld: No such file or directory ls: .\test: No such file or directory ls: with: No such file or directory ls: space.html: No such file or directory ls: ld: No such file or directory .\test.html gnufind . -maxdepth 1 \( -name "*html" \) -exec echo {} \; .\test with space.html .\test.html "martin" wrote in message news:vqzmc1l6j0.fsf@nospam.net... > >>>>>> md3bs writes: > > Date: Thu, 12 Oct 2006 15:59:53 +0100 > > > > find-dired does not work because I have filenames with spaces in > > them. > > > > it does work when I use it on Linux > > Hi, > > works for me on w2k with cygwin. > > find-dired executes the command > find . \( -iname '* *' \) -exec ls -ld {} \;. > > > How can I do multiple find and replace on windows. This should be a > > common task. I can't seem to find any suggestions on the web. > > Mark the files you found by find-dired in the *Find* buffer and apply > dired-do-rename-regexp (% R). > > Martin > -- > parozusa at web dot de