19 January 2007

search search - grep and less frontend

grep and less frontend

This script is used as a frontend to grep & less. Usually, grepping the source code tree for some string doesn't yield a useful output. And it isn't scrollable. So, I've written a simple frontend.

Put it somewhere in your path, and after that you can invoke it in the following way (for example):

The example shown above is for case-insensitive search (-i) in all subdirectories (by default) for a term 'transactCPU'

As a result we get:

Not exactly point-and-click, but much better than original output.

You need to have installed grep and less.

I'm using Kubuntu 6.10 and VIM 7.0

Download here

Good luck!

No comments: