-n, --max-args
Use at most MAX-ARGS arguments per command line.
An option of xargsx.
Usage
xargsx -n MAX-ARGS [COMMAND [INITIAL-ARGUMENT]...]
xargsx --max-args=MAX-ARGS [COMMAND [INITIAL-ARGUMENT]...]Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-n | --max-args | MAX-ARGS | use at most MAX-ARGS arguments per command line |
Examples
Pass two items to each command
seqx 6 | xargsx -n 2 echoxPrint each command line before it runs
seqx 4 | xargsx -t -n 2 echoxAsk before each removal (the answer is read from the terminal)
lsx | xargsx -p -n 1 rmxChecksum many files four commands at a time
findx . -type f -print0 | xargsx -0 -n 50 -P 4 sha256sumxHelp in the terminal
gnux help xargsx --max-args