From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 3 19:52:11 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C521BAD2 for ; Thu, 3 Jan 2013 19:52:11 +0000 (UTC) (envelope-from dieterbsd@gmail.com) Received: from mail-ia0-f171.google.com (mail-ia0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id A1628EC2 for ; Thu, 3 Jan 2013 19:52:11 +0000 (UTC) Received: by mail-ia0-f171.google.com with SMTP id k27so13126908iad.16 for ; Thu, 03 Jan 2013 11:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YxYR6LeP7Zq+J49KJYbFlBJZPslJgdxZr6nno11Kmgg=; b=lKMScYS7QqFppR+L4sCxvUfBjPeJj6ln+Ljr8TZwDpMUdpaiNxb9MUg7f6Iw6MQhHt hD4LH4JhpCMWKkqekm7FR31QZVUMcZP/kHSN0ygS34G94bw5LQMHIF7mUMdbBSJ8a4Dn E89jKS25RXk9C1etWfpzBJ5+taOCLAK9f5YljND0VtRdv/XtgxdOBwRASIswEUOk7htZ XATDyxwDn6bfniijN1O5es58ygQM/DdTX5n3Wqc7XkF1WNlHHwyXzK9zYmx6ITNJ0RXf ap0fqDd3WujIhvBpTt4+8trOGgYKT5swV3wz2gVv9lt3LhoUXWWKQlQfjrupsOyn4i1W 8CqQ== MIME-Version: 1.0 Received: by 10.50.7.135 with SMTP id j7mr40093575iga.82.1357242730982; Thu, 03 Jan 2013 11:52:10 -0800 (PST) Received: by 10.64.107.196 with HTTP; Thu, 3 Jan 2013 11:52:10 -0800 (PST) Date: Thu, 3 Jan 2013 11:52:10 -0800 Message-ID: Subject: Re: Vice versa of 'pkg_info -W' From: Dieter BSD To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 19:52:11 -0000 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.)