list of file names

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Sun Sep 20 17:19:00 GMT 2009


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



More information about the Cygwin mailing list