X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sun, 20 Sep 2009 13:19:43 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: list of file names Message-ID: <20090920171943.GA18279@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <25530095 DOT post AT talk DOT nabble DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25530095.post@talk.nabble.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list 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