[wplug] need help with command

Bob Schmertz rschmertz at speakeasy.net
Thu Sep 11 16:54:31 EDT 2003


Jonathan S Billings incurred the wrath of Bob on Sep 11, by saying

>On Thu, 2003-09-11 at 13:53, Bob Schmertz wrote:
>
>> 
>> % find . -type f | xargs grep "*stuff*"
>
>This is an OK solution, until you get into situations where you have a
>densely populated directory tree, and you exceed the command-line length
>for a command (grep, in particular).  I've run into this problem myself.

The -n option should take care of this nicely.  For some of the other 
problems mentioned in other posts, however, sounds like xargs may not 
be the answer.

-- 
Cheers,
Bob Schmertz




More information about the wplug mailing list