XARGS(1)
π NAME π
okay so bestie, meet xargs (1) from the User Contributed Perl Documentation corner of the universe. its whole iconic job? construct argument list(s) and execute utility. thatβs it, thatβs the vibe β slay π
πΈ SYNOPSIS πΈ
xargs [-0t] [-n num] [-L num] [-s size] [-I repl] [prog [args ...]]
short, cute, and fully loaded β prog [args ...] is optional, and the flags are all listed right there. π«Ά
π DESCRIPTION π
xargs runs a specified program, or the echo command if none is given. periodt β¨ arguments passed to the target program are read from standard input and are generally separated by spaces. the program is run repeatedly until all arguments have been used up. the number of arguments taken by each invocation of the program can be controlled with various options. iykyk π
β¨ OPTIONS β¨
the following options are supported:
-0β expectNULcharacters as separators instead of spaces. this is useful in cases where arguments may contain a space, e.g. a filename. no cap, filename-with-spaces protection is real π«Ά-I replstrβ read input one line at a time, replacing all occurrences of the stringreplstrin the initial arguments with the line read. very demo-coded, very useful π-L NUMBERβ pass a maximumNUMBERof non-empty lines to the program per invocation. line-by-line cuteness πΈ-n NUMBERβ set a maximumNUMBERof arguments to be passed to the program per invocation. arg budget: set π-s SIZEβ pass a maximum ofSIZEbytes of arguments to the program per invocation. byte-sized boundaries, literally π-tβ write a listing of the command arguments to standard error before each invocation of the program. transparency era π₯
π AUTHOR π
Written by Gurusamy Sarathy, gsar@umich.edu β iconic behavior, honestly ππ
and thatβs the whole page, bestie π«Ά this little beauty comes from perl v5.42.2, dated 2026-02-15, and itβs officially XARGS(1). bye π
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms