On Thu, Aug 30, 2012 at 7:51 PM, Dan Cross <cro...@gmail.com> wrote: > A parallel apply sort of thing could be used with xargs, of course; > 'whatever | xargs papply foo' could keep some $n$ of foo's running at > the same time. The magic behind 'papply foo `{whatever}' is that it > knows how to interpret its arguments in blocks. xargs will invoke a > command after reading $n$ arguments, but that's mainly to keep from > overflowing the argument buffer, and (to my knowledge) it won't try to > keep multiple instances running them in parallel.
Oops, I should have checked the man page before I wrote. It seems that at least some version of xargs have a '-P' for 'parallel' mode.