xargs is a command that executes another command and generates its arguments from stdin
xargs
can be used as a concise and safe alternative to loop-constructs and as a tool to parallelize jobs.
In contrast to a simple command substitution, it makes sure that the maximal argument vector size is not exceeded.
From a programming language point of view xargs
is comparable to a higher-order function (like map or curry in Haskell).