
Code search is a tool for indexing and then performing regular expression searches over large bodies of source code. it is a set of command-line programs written in go.
for background and an overview of the commands, see regular expression matching with a trigram index: http://swtch.com/~rsc/regexp/regexp4.html
this package contains the source.