Of course, you will only run into trouble if your xargs is broken. The point of using xargs is to avoid the problem you are describing.

++Abigail-II. The fact was not mentioned on my Linux' xargs man page. But it was on Solaris':

     The generated command line length will be  the  sum  of  the
     size  in bytes of the utility name and each argument treated
     as strings, including a null byte  terminator  for  each  of
     these strings. The xargs utility will limit the command line
     length such that when the command line is invoked, the  com-
     bined   argument  and  environment  lists  will  not  exceed
     {ARG_MAX}-2048 bytes. Within this constraint, if neither the
     -n  nor the -s option is specified, the default command line
     length will be at least {LINE_MAX}.

Not very clear, indeed. But one can go by abstraction :-) and suppose that the line length limit will be circumvented!

Thanks, I learnt something new!

Ciao!
--bronto


The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz

In reply to Re: Re: Find file that contains "....." (command in Unix) by bronto
in thread Find file that contains "....." (command in Unix) by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.