November 29, 2014 · Linux shell

Looking for a certain string recursively inside a directory

This is another damn simple Unix command that I never remember and always end up googling for:

$ grep --exclude=*.pyc  -rnw . -e "foobar"
  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus