4 ms·
Conceptually, xargs applies some logic to each item in a list. Many programming language support this, e.g. Python: for item in some_list: foo(ite
by hibbelig 4y ago
Conceptually, xargs applies some logic to each item in a list. Many programming language support this, e.g. Python:
for item in some_list:
foo(item)
Of course, the above is a replacement for "xargs -n 1" only; but I argue that the batching functionality of xargs isn't really needed in programming languages.