in reply to Passing list long enough for shell expansion to fail, but not for "find | xargs" (was: Re: Writing unix-style filters)
in thread Writing unix-style filters

IIRC, there are versions of xargs that call the program multiple times with "chunks" of input if a single command line is too big. Whether this is good for you depends entirely on the application you're writing.

In this case, anyway, I don't fully get the rationale to use find ... | xargs ... when one can make my_script.pl read filenames directly from standard input. Moreover, setting $/ = "\x00" should do the trick to tandem with find -print0.

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.
  • Comment on Re: Passing list long enough for shell expansion to fail, but not for "find | xargs" (was: Re: Writing unix-style filters)
  • Select or Download Code