summaryrefslogtreecommitdiff
path: root/sys/man/1/xargs
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2012-07-07 15:43:42 -0500
committerstanley lieber <stanley.lieber@gmail.com>2012-07-07 15:43:42 -0500
commit8669b49b00c68753f9bcc191a9591c054416fbdb (patch)
treeae09fc4a0bcbce988a077edf98934abe0d5a4bb6 /sys/man/1/xargs
parent0b6f559ebca69f6ad8b73d376d08d77df27f11bb (diff)
add xargs(1) man page
Diffstat (limited to 'sys/man/1/xargs')
-rw-r--r--sys/man/1/xargs33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/man/1/xargs b/sys/man/1/xargs
new file mode 100644
index 000000000..db0af6260
--- /dev/null
+++ b/sys/man/1/xargs
@@ -0,0 +1,33 @@
+.TH XARGS 1
+.SH NAME
+xargs \- construct argument list and execute
+.SH SYNOPSIS
+.B xargs
+[
+.B -n
+.I number
+] [
+.B -p
+.I maxprocs
+]
+.I args
+.SH DESCRIPTION
+The
+.I xargs
+utility reads space, tab, newline, and end-of-file delimited strings from the standard input and executes the specified utility with the strings as arguments.
+.PP
+Any arguments specified on the command line are given to the utility upon each invocation, followed by some number of the arguments read from standard input. The utility is repeatedly executed one or more times until standard input is exhausted.
+.PP
+Options are as follows:
+.TP
+.B -n
+Set
+.I number
+as the maximum number of arguments taken from standard input for each invocation.
+.TP
+.B -p
+Parallel mode: run
+.I maxprocs
+invocations at once.
+.SH SOURCE
+.B /sys/src/cmd/xargs.c