From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 13:17:52 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2320116A4CE for ; Thu, 24 Mar 2005 13:17:52 +0000 (GMT) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0EB443D3F for ; Thu, 24 Mar 2005 13:17:50 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out4.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Thu, 24 Mar 2005 13:18:27 +0000 Message-ID: <4242BDFD.4050209@dial.pipex.com> Date: Thu, 24 Mar 2005 13:17:49 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7) Gecko/20040627 X-Accept-Language: en, en-us MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20050323173313.GA94954@rajarajan.homeunix.net> <200503230936.54842.ringworm01@gmail.com> <4241ACE3.5080304@dial.pipex.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Mar 2005 13:18:27.0590 (UTC) FILETIME=[F7281A60:01C53073] Subject: Re: how to find which port has a given executable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 13:17:52 -0000 Christopher Nehren wrote: >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 {} \;. :) > > I've been typing it like this for 20 years and my fingers can type {} \; faster than a speeding bullet, or at least a run-away zimmer frame. Leave us old fogeys in peace. You and your new fangled commands starting with x that aren't X11 applications. If it wasn't in 4.1BSD it isn't worth using. Anyway, the manual page for xargs just makes my brain hurt. :) Charles Swiger wrote: On Mar 23, 2005, at 1:22 PM, > pkg_which epstopdf > > ...is probably even faster and easier. % pkg_which epstopdf epstopdf: not found Just like pkg_info -W it doesn't seem to work unless the package is installed --Alex