delorie.com/archives/browse.cgi | search |
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 <cgf-use-the-mailinglist-please AT cygwin DOT com> |
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 |
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 |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |