delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 19 Feb 2007 09:30:38 -0800 |
From: | Christopher Layne <clayne AT anodized DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: xargs problem |
Message-ID: | <20070219173037.GA17394@ns1.anodized.com> |
References: | <1171899485 DOT 45d9c45d44ef0 AT www DOT domainfactory-webmail DOT de> <BAY112-F18CDF858AF31B16E2F01D4C58A0 AT phx DOT gbl> <20070219163431 DOT GX4158 AT calimero DOT vinschen DOT de> |
Mime-Version: | 1.0 |
In-Reply-To: | <20070219163431.GX4158@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.11 |
X-Assp-Spam-Prob: | 0.00000 |
X-Assp-Whitelisted: | Yes |
X-Assp-Envelope-From: | clayne AT ns1 DOT anodized DOT com |
X-Assp-Intended-For: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
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 Mon, Feb 19, 2007 at 05:34:31PM +0100, Corinna Vinschen 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' Which btw is obnoxiously slow on Cygwin for some weird-unknown reason. A better alternative to xargs on cygwin: printf "%s\n" `command` -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |