how to find which port has a given executable

Christopher Nehren apeiron+usenet at coitusmentis.info
Wed Mar 23 12:47:35 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2005-03-23, Alex Zbyslaw scribbled these
curious markings:
> % find /usr/ports -type f -name pkg-plist -exec egrep -H epstopdf {} \;

Just a bit of nitpickery: I've found that piping the output to xargs
rather than using find's exec produces faster results. Plus, you (most
of the time) don't need to use constructs like {} \;. :)

Best Regards,
Christopher Nehren
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCQbSzk/lo7zvzJioRAirsAJ9oq+xJr6AHgscuUXBIzWvvsa33mgCeOnz5
8JesEMbAHU9K0SAgpb8B7eo=
=nKZB
-----END PGP SIGNATURE-----

-- 
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong questions, you get answers like "42" and "God".
Unix is user friendly. However, it isn't idiot friendly.



More information about the freebsd-questions mailing list