xargs
xargs (short for “extended arguments”)1 is a command on Unix and most Unix-like operating systems used to build and execute commands from standard input. It converts input from standard input into arguments to a command.
Some commands such as
grepandawkcan take input either as command-line arguments or from the standard input. However, others such ascpandechocan only take input as arguments, which is why xargs is necessary.A port of an older version of GNU xargs is available for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.2 A ground-up rewrite named wargs is part of the open-source TextTools3 project. The xargs command has also been ported to the IBM i operating system.4
Printed 2026-07-07.
(echo:: @ ᯤ)
Footnotes
-
“The Unix Acronym List: The Complete List”. www.roesler-ac.de. Archived from the original on 2012-07-16. Retrieved 2020-04-12. ↩
-
“Native Win32 ports of some GNU utilities”. unxutils.sourceforge.net. Archived from the original on 2006-02-09. Retrieved 2025-08-11. ↩
-
“Text processing tools for Windows”. Archived from the original on 2022-03-22. Retrieved 2022-03-22. ↩
-
IBM. “IBM System i Version 7.2 Programming Qshell” (PDF). Archived (PDF) from the original on 2020-09-18. Retrieved 2020-09-05. ↩