in reply to Re: searching a string in many files
in thread searching a string in many files

Excellent post, but I have one [extremely] minor niggle. The use of -n 10 in your xargs command is most likely superfluous. Most of the time xargs can figure out by itself the maximum number of options it can pack onto a single command line. Setting an arbitrary number (especially one as low as 10) could potentially cause xargs to call perl far more times than necessary.

Replies are listed 'Best First'.
Re: Re: Re: searching a string in many files
by pzbagel (Chaplain) on Jun 27, 2003 at 18:05 UTC

    I did not know that about xargs. That's the second new thing I learned today. Boy does my brain need to cool off now. But seriously, ++ and thanks for the tip.

    Later