xargs

Name

xargs -- build and execute command lines from standard input

Description

The specification for "xargs" is as specified in the SUS but with the following differences as listed below.

Differences

--null, -0

Input filenames are terminated by a null character instead of by whitespace, and the quotes and backslash are not special (every character is taken literally). Disables the end of file string, which is treated like any other argument. Useful when arguments might contain white space, quote marks, or backslashes. The GNU find -print0 option produces input suitable for this mode.

--eof[=eof-str]

Equivalent to the -e option

-E

This option is not supported

--replace[=replace-str]

Use FORMAT as the string that controls the output of time. See the below more information.

-I

This option is not supported

--max-lines[=max-lines]

Equivalent to the the -l option

-L

This option is not supported

--max-args=max-args

Equivalent to the -n option

--interactive

Equivalent to the -p option

--no-run-if-empty, -r

If the standard input does not contain any nonblanks, do not run the command. Normally, the command is run once even if there is no input.

--max-chars

Equivalent to the -s option

--verbose

Equivalent to the -t option

--version

Print the version number of xargs and exit.

--exit

Equivalent to the -x option

--max-procs=max-procs, -P max-procs

Run up to max-procs processes at a time; the default is 1. If max-procs is 0, xargs will run as many processes as possible at a time. Use the -n option with -P; otherwise chances are that only one exec will be done.