From 3c4d0d0ab159bcc05bcde1f691e104470e8b09f3 Mon Sep 17 00:00:00 2001 From: Florian Leitner Date: Sat, 9 Feb 2019 14:09:48 +0100 Subject: [PATCH] xargs: added parallel proc flag -P (#2761) --- pages/common/xargs.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/xargs.md b/pages/common/xargs.md index d3a1f8466b..8c37c926c0 100644 --- a/pages/common/xargs.md +++ b/pages/common/xargs.md @@ -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: `{{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}}`