This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: list of file names
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 20 Sep 2009 13:19:43 -0400
- Subject: Re: list of file names
- References: <25530095.post@talk.nabble.com>
- Reply-to: cygwin at cygwin dot com
On Sun, Sep 20, 2009 at 10:12:51AM -0700, Erhy wrote:
>
>Hello,
> This command is OK:
>sed -i '0,/small/s//big/' "Choir Aehs.sfz" "Choir Ahs.sfz"
> and edits both files
>
> but this returns with Errors:
>sed -i '0,/small/s//big/' `find . -name '*.sfz' -print`
>
>by showing the parts of the names seperatet with spaces:
>sed: kann ./Choir nicht lesen: No such file or directory
>sed: kann Aehs.sfz nicht lesen: No such file or directory
>sed: kann ./Choir nicht lesen: No such file or directory
>sed: kann Ahs.sfz nicht lesen: No such file or directory
>
>Because I Have do edit a big number of files in subdirectories
>it would be helpful for me.
This is not a cygwin-specific problem but you could investigate find
and xargs, e.g.,
find -name '*.sfz' -print0 | xargs -0 sed -i '0,/small/s//big/'
cgf
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple