xargs problem

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Feb 19 16:34:00 GMT 2007


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/



More information about the Cygwin mailing list