Search your source with wcgrep -l methodname

Having used, for years, the inferior command

$grep -rin 'methodname' .

when recursively searching through files for a method, the discovery of

wcgrep -l methodname

comes as a shock.

Looks like I’m not the only one using $grep -rin. In any case, there is a new, clever kid on the block, freshly installed in /usr/bin: wcgrep -l methodname

It is smart enough not to search Subversion’s text-base files, something that has plagued me, and perhaps you too. For an entertaining post on the topic, read this post on justinsomnia.org, published six years ago, ouch, that rubs some serious salt into the wound.

You can find the wcgrep script HERE.

Advertisements