plan9fox/sys/man/1/xargs

37 lines
608 B
Plaintext
Raw Normal View History

2012-07-07 20:43:42 +00:00
.TH XARGS 1
.SH NAME
xargs \- construct argument list and execute
.SH SYNOPSIS
.B xargs
[
.B -n
.I number
] [
.B -p
.I maxprocs
]
2012-07-09 00:44:05 +00:00
.B cmd
[
.I arg ...
]
2012-07-07 20:43:42 +00:00
.SH DESCRIPTION
2012-07-09 00:44:05 +00:00
.I Xargs
reads
.B number
(default 10) lines from
standard input and runs the given commands with those lines as arguments. The utility is repeatedly executed one or more times until standard input is exhausted.
2012-07-07 20:43:42 +00:00
.PP
Options are as follows:
.TP
.B -n
Set
.I number
2012-07-09 00:44:05 +00:00
as the maximum number of lines taken from standard input for each invocation.
2012-07-07 20:43:42 +00:00
.TP
.B -p
Parallel mode: run
.I maxprocs
invocations at once.
.SH SOURCE
.B /sys/src/cmd/xargs.c