Re: xargs - how to get it to execute input args as "the command"?

2014-01-05 Thread Eric Blake
On 01/05/2014 04:09 AM, Linda A. Walsh wrote: > (tried "exec", but I guess that is a shell builtin...sigh)... How about 'env' instead of 'exec'? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital s

Re: xargs - how to get it to execute input args as "the command"?

2014-01-05 Thread James Youngman
On Sun, Jan 5, 2014 at 11:09 AM, Linda A. Walsh wrote: > > > James Youngman wrote: >> >> You can use the "sh -c" trick to run the first argument as the command. >> > > > Do you think the above case could be optimized? As I mentioned in my inital > query, I wanted to avoid shell overhead on 8

Re: xargs - how to get it to execute input args as "the command"?

2014-01-05 Thread Bernhard Voelker
On 01/05/2014 12:09 PM, Linda A. Walsh wrote: > James Youngman wrote: >> You can use the "sh -c" trick to run the first argument as the command. > Do you think the above case could be optimized? As I mentioned in my inital > query, I wanted to avoid shell overhead on 80 thousand sub-jobs. Sure,

Re: xargs - how to get it to execute input args as "the command"?

2014-01-05 Thread Linda A. Walsh
James Youngman wrote: You can use the "sh -c" trick to run the first argument as the command. Do you think the above case could be optimized? As I mentioned in my inital query, I wanted to avoid shell overhead on 80 thousand sub-jobs. I.e. is there any reason xargs couldn't run the a

Re: xargs - how to get it to execute input args as "the command"?

2014-01-05 Thread James Youngman
You can use the "sh -c" trick to run the first argument as the command. You can use -d to select the delimiter.