1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 23:06:02 +02:00

xargs: added parallel proc flag -P (#2761)

This commit is contained in:
Florian Leitner 2019-02-09 14:09:48 +01:00 committed by Owen Voke
parent f79f6011e0
commit 3c4d0d0ab1

View file

@ -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}}`