LinkedIn

firebus's picture

Better grep

So, this is maybe the dumbest thing ever, but since I've been working a lot lately with a large codebase that's new to me and has many odd dependencies I do this a lot:


grep -lr someFunctionName someRepositoryWorkingCopy/

And for every interesting hit, I get about 5 hits from inside a .svn directory which makes it hard to see anything.

So then I have to go back and say


grep -lr someFunctionName someRepositoryWorkingCopy/ | grep -v svn


Syndicate content

Powered by Drupal - Design by Artinet - Amazon Affiliate