Args / Parallel Xargs
Parallel Xargs
Args command syntax to parallel xargs. Copyable examples, output expectations, and common mistakes.
$
Terminal <args> | parallel -X <command> <args> | parallel -X <command> #!/bin/bash
# Parallel Xargs
{{args}} | parallel -X {{command}} Command Breakdown
What each part is doing
-
<args> - Base Command
- The executable that performs this operation. Here it runs Args before the shell applies any redirect operators.
-
<args> - args
- The value supplied for args.
-
<command> - command
- The value supplied for command.
-
-X - Command Option
- Tool-specific option used by this command invocation.
Alternative Approaches
Comparable commands in other tools
Alternative tools for a closely related operation.
Curl / Send Form Encoded Data
curl -X POST -d '<name=bob>' {http://example.com/form} Hg / Remove Staged Files Excluding Pattern hg remove -X <pattern> Curl / Send Request With Extra Header curl [-k|--insecure] [-x|--proxy] http://127.0.0.1:8080 [-H|--header] '{Authorization: Bearer token}' [-X|--request] GET https://example.com Tectonic / Initialize Tectonic Project Current Directory tectonic -X init Hg / Exclude Files Matching Pattern hg status -X <pattern>