Is there an easy way to find out which port loads which library?
Chris Rees
utisoft at gmail.com
Tue Feb 19 19:06:31 UTC 2013
On 19 February 2013 19:00, Mark Felder <feld at feld.me> wrote:
> On Sun, 17 Feb 2013 15:56:26 -0600, Chris Rees <utisoft at gmail.com> wrote:
>
>> Most shells won't allow an argument list that long.
>> % find /usr/ports -depth 3 -name pkg-plist -exec grep libfoobar.so \{} \;
>> has been shown to be faster than hacking around arg list limits with echo
>> |
>> xargs.
>
>
> The following may prove to be even faster as it fills the shell argument
> list as full as possible for each execution of grep.
>
> % find /usr/ports -depth 3 -name pkg-plist -exec grep libfoobar.so \{} +
>
> (notice the + at the end)
>
> It's something I picked up from here: http://www.etalabs.net/sh_tricks.html
>
I deliberately chose \; because most tests show no difference, and for
some reason it fails on csh :/
http://www.bayofrum.net/~crees/scratch/find-plus
Chris
More information about the freebsd-ports
mailing list