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

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

Re: multiple find and replace on windows using (gnu) find


From: md3bs
Subject: Re: multiple find and replace on windows using (gnu) find
Date: Fri, 13 Oct 2006 13:33:27 +0100

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" <nospam@nospam.net> wrote in message 
vqzmc1l6j0.fsf@nospam.net">news:vqzmc1l6j0.fsf@nospam.net...
>
>>>>>> md3bs  <d.e.1.mayfield@herts.ac.uk> 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 




reply via email to

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