Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2005 13:17:49 +0000
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to find which port has a given executable
Message-ID:  <4242BDFD.4050209@dial.pipex.com>
In-Reply-To: <slrnd43d5j.4ds.apeiron%2Busenet@prophecy.dyndns.org>
References:  <20050323173313.GA94954@rajarajan.homeunix.net> <200503230936.54842.ringworm01@gmail.com> <4241ACE3.5080304@dial.pipex.com> <slrnd43d5j.4ds.apeiron%2Busenet@prophecy.dyndns.org>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4242BDFD.4050209>