By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,091 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,091 IT Pros & Developers. It's quick & easy.

"grep" database

P: n/a
Hello,

I've heard of a software on linux that creates a recursive database of
text files and then provides an interface for grep-like queries. I'd
like to use it to find procedures/variables in a large code base.

Any suggestions appreciated.

Thanks,
Hilbert

Sep 9 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
ctags indexes procedures/variables in source code, perhaps it would
help: http://ctags.sf.net/

--
Adam Monsen
http://adammonsen.com/

Sep 9 '05 #2

P: n/a
thanks!

Sep 9 '05 #3

P: n/a
"Hilbert" <li***@panka.com> writes:
I've heard of a software on linux that creates a recursive database of
text files and then provides an interface for grep-like queries. I'd
like to use it to find procedures/variables in a large code base.

Any suggestions appreciated.


The great granddaddy of them all is WAIS, but it uses a client-server
model instead of grep-like queries. It has since been standardized as
z39.50. The one most like what you want is probably glimpse, which
includes a command-line tool called "agrep" for searching the
database. Swish and HARVEST also come to mind as tools in that model.

You're most likely to find these tools being used as or bundled as
part of web site search engines. They all support "structured" text
files, meaning they parse them to assign tags to parts of the content,
and let you use those tags

How big is your data set? I gave up trying to find one that would
properly index 2+ gig of text files - the index data structures kept
running into some form of memory limit. I finally gave up and used
the file system layout to handle part of the search, doing finds on
re's for the name - and a custom tool to look for further structure
inside the files.

If you're going to be dealing with large data sets, I'd like to know
if you find something that works well for you.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Sep 9 '05 #4

P: n/a
maybe look Gonzui, LXR, some of the other tools listed here

http://www.gnu.org/software/global/links.html

Hilbert wrote:
Hello,

I've heard of a software on linux that creates a recursive database of
text files and then provides an interface for grep-like queries. I'd
like to use it to find procedures/variables in a large code base.

Any suggestions appreciated.

Thanks,
Hilbert


Sep 10 '05 #5

P: n/a
On Fri, 9 Sep 2005, Hilbert wrote:
Hello,

I've heard of a software on linux that creates a recursive database of
text files and then provides an interface for grep-like queries. I'd
like to use it to find procedures/variables in a large code base.

Any suggestions appreciated.

Thanks,
Hilbert


google 'glimpse'.

hth.

-a
--
================================================== =============================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
================================================== =============================

Sep 10 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.