xargs

From Wiki @ Karl Jones dot com
Revision as of 13:36, 22 September 2017 by Karl Jones (Talk | contribs) (Created page with "'''xargs''' is a command on Unix and most Unix-like operating systems used to build and execute command lines from standard input. Commands such as grep and awk...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

xargs is a command on Unix and most Unix-like operating systems used to build and execute command lines from standard input.

Commands such as grep and awk can accept the standard input as a parameter, or argument by using a pipe.

However, others such as cp and echo disregard the standard input stream and rely solely on the arguments found after the command.

Additionally, under the Linux kernel before version 2.6.23, and under many other Unix-like systems, arbitrarily long lists of parameters cannot be passed to a command, so xargs breaks the list of arguments into sublists small enough to be acceptable.

Description

See also

External links