On Sun, Jun 8, 2008 at 5:41 AM, Alin Năstac <[EMAIL PROTECTED]> wrote: > Diego 'Flameeyes' Pettenò wrote: >> >> "Michael Sterrett -Mr. Bones.-" <[EMAIL PROTECTED]> writes: >> >> >>> >>> The tree's small enough that grep -r gives enough performance. >>> >> >> Even better >> >> grep */*/metadata.xml >> >> the tree is not big enough that it exceeds the maximum arguments from >> bash. >> >> > > According to my local copy, we have 12876 metadata.xml files. > Something tells me that your command line will exceed the maximum command > line length supported by any shell ;) > >
Although it'll be a bit slower than a direct grep: for m in `find /usr/portage -name metadata.xml `; do grep -Rn foo $m;done
