]> git.lizzy.rs Git - plan9front.git/blob - sys/man/1/xargs
merge
[plan9front.git] / sys / man / 1 / xargs
1 .TH XARGS 1
2 .SH NAME
3 xargs \- construct argument list and execute
4 .SH SYNOPSIS
5 .B xargs
6 [
7 .B -n
8 .I number
9 ] [
10 .B -p
11 .I maxprocs
12 ]
13 .B cmd
14 [
15 .I arg ...
16 ]
17 .SH DESCRIPTION
18 .I Xargs
19 reads
20 .B number
21 (default 10) lines from
22 standard input and runs the given
23 .B cmd
24 with those lines as arguments. This is repeated until standard input is exhausted.
25 .PP
26 Options are as follows:
27 .TP
28 .B  -n
29 Set
30 .I number
31 as the maximum number of lines taken from standard input for each invocation.
32 .TP
33 .B  -p
34 Parallel mode: run
35 .I maxprocs
36 invocations at once.
37 .SH EXAMPLE
38 .IP
39 .EX
40 seq 1 9 | xargs -n 3 echo
41 .EE
42 .LP
43 .SH SOURCE
44 .B /sys/src/cmd/xargs.c
45 .SH HISTORY
46 .I Xargs
47 was implemented from scratch for 9front (August, 2011).