This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: xargs problem
- From: "Aaron Brown" <arundelo at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 19 Feb 2007 11:23:00 -0500
- Subject: RE: xargs problem
- Bcc:
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:
$ for Thing in test1 test2 'test 3'; do echo $Thing; done
test1
test2
test 3
--
Aaron
http://m-net.arbornet.org/~arundelo/
_________________________________________________________________
http://homepage.msn.com/zune?icid=hmetagline
--
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/