Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2013 11:52:10 -0800
From:      Dieter BSD <dieterbsd@gmail.com>
To:        hackers@freebsd.org
Subject:   Re: Vice versa of 'pkg_info -W'
Message-ID:  <CAA3ZYrANyTeHjCjffJOL1=sWp9_v3A3=bK2Cn=2ArBWjanz-=Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA3ZYrANyTeHjCjffJOL1=sWp9_v3A3=bK2Cn=2ArBWjanz-=Q>