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, published six years ago, ouch, that rubs some serious salt into the wound.

You can find the wcgrep script HERE.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s