-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When, and how, to use xargs #17
Comments
Also, this is one of those places where a novice Basher may be tempted to use |
Can you write something up on this? I'm not actually as familiar. Along with this, it could be nice to have a few useful patterns to showcase xargs. |
The two best examples off the top of my head:
|
I think I wrote a few things on this in the issues for sshcommand. Basically the |
I'm saying, can you write a little mini-guide on xarg patterns? |
Since this is apparently a somewhat obscure tool for a very necessary task (converting strings to argument lists while preserving quoting/grouping), I think it's called for to have a note on using
xargs -x
(andxargs -xa
when you can't clobber STDIN) to deserialize arguments from strings/streams, involving how to interpolate multiple inputs to output your string as a stream (use a sequence of commands in a subshell).The text was updated successfully, but these errors were encountered: