Bug 9511 - xargs does not support parallel -P
Summary: xargs does not support parallel -P
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-26 22:53 UTC by Jonathan
Modified: 2017-08-24 11:24 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan 2016-12-26 22:53:33 UTC
A critically needed feature I use a lot is GNU xargs parallel operations. Often the parallel xargs operations are better than the cli util "parallel" for my use-cases. 

Example:
find samplegz | xargs -n1 -P4 sh parse.sh

P4 says have at most 4 commands running at the same time

For examples:
https://www.xaprb.com/blog/2009/05/01/an-easy-way-to-run-many-tasks-in-parallel/
Comment 1 Denys Vlasenko 2017-08-24 11:24:52 UTC
Fixed in git.