Vice versa of 'pkg_info -W'
Dieter BSD
dieterbsd at gmail.com
Thu Jan 3 19:52:11 UTC 2013
Domagoj writes:
> I've attempted to grep '/usr/ports/*/*/pkg-plist' for 'bin/lynx'
> and shot myself in a foot! :P
> Even if it did returned "sane" amount of matches, speed was atrocious.
time find /usr/ports/ -name pkg-plist | xargs grep bin/lynx$
/usr/ports/finance/ledgersmb/pkg-plist:@dirrm ledger-smb/bin/lynx
/usr/ports/finance/sql-ledger/pkg-plist:@dirrm sql-ledger/bin/lynx
/usr/ports/japanese/lynx/pkg-plist:bin/lynx
/usr/ports/japanese/lynx-current/pkg-plist:bin/lynx
/usr/ports/www/lynx/pkg-plist:bin/lynx
/usr/ports/www/lynx-current/pkg-plist:bin/lynx
real 0m2.065s
user 0m0.379s
sys 0m1.338s
Not bad for a system that has been repeatedly insulted on this
list recently.
(I'm assuming that 6 matches is a "sane" amount.)
More information about the freebsd-hackers
mailing list