unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "md3bs" <d.e.1.mayfield@herts.ac.uk>
Subject: Re: multiple find and replace on windows using (gnu) find
Date: Fri, 13 Oct 2006 13:33:27 +0100	[thread overview]
Message-ID: <ego15c$igg$1@helios.herts.ac.uk> (raw)
In-Reply-To: vqzmc1l6j0.fsf@nospam.net

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 
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	other threads:[~2006-10-13 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 14:59 multiple find and replace on windows using (gnu) find md3bs
2006-10-12 18:42 ` martin
2006-10-13 12:33   ` md3bs [this message]
2006-10-13 15:16 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ego15c$igg$1@helios.herts.ac.uk' \
    --to=d.e.1.mayfield@herts.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).