XARGS(1) XARGS(1)
NAME
xargs - construct argument list and execute
SYNOPSIS
xargs [ -n number ] [ -p maxprocs ] cmd [ arg ... ]
DESCRIPTION
Xargs reads number (default 10) lines from standard input
and runs the given cmd with those lines as arguments. This
is repeated until standard input is exhausted.
Options are as follows:
-n Set number as the maximum number of lines taken from
standard input for each invocation.
-p Parallel mode: run maxprocs invocations at once.
EXAMPLE
seq 1 9 | xargs -n 3 echo
SOURCE
/sys/src/cmd/xargs.c
HISTORY
Xargs was implemented from scratch for 9front (August,
2011).
Page 1 Plan 9 (printed 11/17/25)