X-Spam-Check-By: sourceware.org Date: Mon, 19 Feb 2007 17:34:31 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: xargs problem Message-ID: <20070219163431.GX4158@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <1171899485 DOT 45d9c45d44ef0 AT www DOT domainfactory-webmail DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i 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 Feb 19 11:23, Aaron Brown wrote: > Markus Hoenicka wrote: > > >maybe I'm being dense, but xargs does not seem to do what > >it should: > > xargs only calls the command (echo in this case) once, with > all the given arguments. (It will call it more than once > only if calling it once would be a too-long command line.) > > If you want a command run once for each item in a list of > things, use a for loop: ...or `xargs -n 1' Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/