xargs: added parallel proc flag -P (#2761)
This commit is contained in:

committed by
Owen Voke

parent
f79f6011e0
commit
3c4d0d0ab1
@@ -14,3 +14,7 @@
|
|||||||
- Execute the command once for each input line, replacing any occurrences of the placeholder (here marked as `_`) with the input line:
|
- Execute the command once for each input line, replacing any occurrences of the placeholder (here marked as `_`) with the input line:
|
||||||
|
|
||||||
`{{arguments_source}} | xargs -I _ {{command}} _ {{optional_extra_arguments}}`
|
`{{arguments_source}} | xargs -I _ {{command}} _ {{optional_extra_arguments}}`
|
||||||
|
|
||||||
|
- Parallel runs of up to `max-procs` processes at a time; the default is 1. If `max-procs` is 0, xargs will run as many processes as possible at a time:
|
||||||
|
|
||||||
|
`{{arguments_source}} | xargs -P {{max-procs}} {{command}}`
|
||||||
|
Reference in New Issue
Block a user