Converts standard output of one command into arguments for another
xargs [options] [command]
The xargs utility is a convenient, efficient way to convert standard output of one command into arguments for another command. This utility reads from standard input, keeps track of the maximum allowable length of a command line, and avoids exceeding that limit by repeating command as necessary.
You can give xargs a command line as the argument command. If any arguments to command should precede the arguments from standard input, they must be included as part of command. By default xargs assumes that standard input is to be appended to command to form a complete command line. If you omit command, it defaults to echo.
Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.