4 ms·
Which repl do you use to replace xargs?
by wodenokoto 4y ago
Which repl do you use to replace xargs?
- e63f67dd-065b 4y agoNot GP, but I use perl, which I suppose isn't much better from the perspective of something that's easy to learn :/
- brabel 4y agoYou don't need xargs when you're using a programming language.
- hibbelig 4y agoConceptually, 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.