Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #11747

Re: Interesting utilities

From Kaz Kylheku <kaz@kylheku.com>
Newsgroups comp.lang.c
Subject Re: Interesting utilities
Date 2011-10-16 01:18 +0000
Organization A noiseless patient Spider
Message-ID <20111015211046.727@kylheku.com> (permalink)
References <j713uv$e6o$1@speranza.aioe.org>

Show all headers | View raw


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.

> Another nifty thing is the splint code checker. (This one is probably
> present under linux also but I never saw it under windows)

There is a direct pointer to a Windows download page on the Splint
home page! This kind of thing is not going to come preinstalled on a Wintel PC
from Best Buy.

> The problem with it is that it is incredibly verbose, swamping the
> few interesting diagonstics under a mountain of rubbish. After a long
> session with it I have trimmed it to give me reasonable short output.

This is by design. To get value out of splint you have to read the
documentation and start using the annotations.

Splint can statically check things like that malloced objects are freed
somewhere, at least for some programs (maybe not in general).

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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