05-21-07 06:19 PM
On May 21, 12:28 am, Giorgos Keramidas <keram...@ceid.upatras.gr>
wrote:
> On 20 May 2007 11:06:32 -0700, guru <guru.j...@gmail.com> wrote:
>
>
>
>
>
>
> Not really; it works fine.
>
> The xargs utility solves a different problem, when there is a chance for
> the full length of the command-line to exceed system limits. In this
> case, no part of the command-line is generated by some backquote
> expansion or similar constructs, so xargs is not necessary.
Yes; also, apart from backquote expansion, a possibly more common way
in which the command line can become too long, is if filename wildcard
characters (glob chars like * are used, and there are many files
matching). That doesn't apply to the example given above, of course,
but mentioning it since the OP might try doing the command with
wildcards. If using wildcards, unless you're sure exactly what the
wildcards mean, and how many files are going to match, and how long
the command line is going to become as a result, a useful trick is to
precede the entire command with "echo "; this doesn't do anything
permanent or damaging (just prints the expanded command to the screen,
but by this you get to see the expanded command without running it. Of
course if you have pipes etc. as in the example, you may have to tweak
what I've said for the echo trick to work.
Vasudev Ram
Dancing Bison Enterprises
http://www.dancingbison.com
[ Post a follow-up to this message ]
|