Re: pkg_info question

2005-06-22 Thread Björn König
Jim Trigg wrote: On Wed, June 22, 2005 2:13 pm, Björn König said: Thus I can search a file with cat /path/to/somewhere | xargs grep 'pattern' You can avoid wasting a process by using the following instead: xargs grep 'pattern' < /path/to/somewhere Thanks. Where is my UUOC award? ;-)

Re: pkg_info question

2005-06-22 Thread Björn König
Casey Scott wrote: Thanks. Good idea. How about this, its a little easier. #find ./ -name 'pkg-plist*' | xargs grep 'bin/convert' Yes, it is easier if you do this only once. I do it several times and I want to benefit from a previous search. What is faster: to find more than 10.000 pkg-plis

Re: pkg_info question

2005-06-22 Thread Jim Trigg
On Wed, June 22, 2005 2:13 pm, Björn König said: > Thus I can search a file with > >cat /path/to/somewhere | xargs grep 'pattern' You can avoid wasting a process by using the following instead: xargs grep 'pattern' < /path/to/somewhere Jim -- Jim Trigg, Lord High Everything Else O- /"

Re: pkg_info question

2005-06-22 Thread Casey Scott
Thanks. Good idea. How about this, its a little easier. #find ./ -name 'pkg-plist*' | xargs grep 'bin/convert' Casey > Casey Scott wrote: > >> Sorry, I meant I need to know what package a file belongs to that does >> not >> exist in the file system already. I need to know where to get something,

Re: pkg_info question

2005-06-22 Thread Björn König
Casey Scott wrote: Sorry, I meant I need to know what package a file belongs to that does not exist in the file system already. I need to know where to get something, not where it came from. My CVSup script executes find /usr/ports -name "pkg-plist*" > /path/to/somewhere after an update of

Re: pkg_info question

2005-06-22 Thread Casey Scott
Sorry, I meant I need to know what package a file belongs to that does not exist in the file system already. I need to know where to get something, not where it came from. > In the last episode (Jun 22), Casey Scott said: >> Is it possible to get pkg_info, or some other command, to show what >> pa

Re: pkg_info question

2005-06-22 Thread Dan Nelson
In the last episode (Jun 22), Casey Scott said: > Is it possible to get pkg_info, or some other command, to show what > package contains a file? > > E.g. find what package has /usr/local/bin/convert pkg_info -W /usr/local/bin/convert Or if you have portupgrade installed, "pkg_which /usr/local/

Re: pkg_info question

2005-01-13 Thread Louis LeBlanc
On 01/12/05 06:01 PM, Kris Kennaway sat at the `puter and typed: > On Wed, Jan 12, 2005 at 08:45:30PM -0500, Louis LeBlanc wrote: > > Hey folks. I'm trying to make a cruft killing run through my > > installed packages. > > > > What would make this a lot easier is if I could easily get a list of >

Re: pkg_info question

2005-01-12 Thread Kris Kennaway
On Wed, Jan 12, 2005 at 08:45:30PM -0500, Louis LeBlanc wrote: > Hey folks. I'm trying to make a cruft killing run through my > installed packages. > > What would make this a lot easier is if I could easily get a list of > packages that are installed that are NOT required by other packages. > >