Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Interesting utilities |
| Date | 2011-10-16 14:34 +1300 |
| Message-ID | <9fuqkcF3u9U1@mid.individual.net> (permalink) |
| References | <j713uv$e6o$1@speranza.aioe.org> <20111015211046.727@kylheku.com> |
On 10/16/11 02:18 PM, Kaz Kylheku wrote: > On 2011-10-11, jacob navia<jacob@spamsink.net> wrote: >> I am developing in the Mac OS X (10.7) system, and it has some nice >> features that I hadn't seen in any windows/unix system. >> >> One of them is the "mdfind" utility that is incredibly powerful: >> >> mdfind some-identifier >> >> will look in the whole machine for "some-identifier" and write you in >> standard output the name of all files that have a match. It is like >> >> grep -R "some-identifier" /*.* >> >> but it comes back in seconds instead of hours like grep. > > So it is not more powerful than grep, since it computes the same thing. The > word you are looking for is "faster". > > Can it find any regular expression in seconds? > >> It is very useful, and I never found something even remotely equivalent >> under linux/sun os > > How hard do you look? > > I use id-utils and ctags for doing this over programming projects. > In id-utils there is a "mkid" utility which indexes the identifiers found > in a directory tree. This is gathered into a big file called ID. > The ID file is queried with "lid". > > I just set up an Ubuntu system where "apt-get install id-utils" > got me mkid in seconds. These utilities are all well and good on a relatively static filesystem, but the fun begins when you want to keep the database as up to date as possible. I know all about the fun involved, I have to maintain an index over a couple of multi-TB filesystems with tens of millions of files in each! -- Ian Collins
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-11 11:57 +0200
Re: Interesting utilities Roberto Waltman <usenet@rwaltman.com> - 2011-10-15 00:35 -0400
Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-15 13:06 +0200
Re: Interesting utilities Geoff <geoff@invalid.invalid> - 2011-10-15 10:26 -0700
[OT] Interesting utilities Roberto Waltman <usenet@rwaltman.com> - 2011-10-15 16:14 -0400
Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-16 01:24 +0000
Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-16 09:45 +0200
Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-16 14:05 +0200
Re: Interesting utilities jacob navia <jacob@spamsink.net> - 2011-10-16 14:39 +0200
Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-17 16:38 +0000
Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-16 01:18 +0000
Re: Interesting utilities Ian Collins <ian-news@hotmail.com> - 2011-10-16 14:34 +1300
Re: Interesting utilities XeCycle <xecycle@gmail.com> - 2011-10-16 10:42 +0800
Re: Interesting utilities Kaz Kylheku <kaz@kylheku.com> - 2011-10-16 03:53 +0000
Re: Interesting utilities XeCycle <xecycle@gmail.com> - 2011-10-16 21:25 +0800
csiph-web