Skip to content

Instantly share code, notes, and snippets.

@akrabat
Created November 11, 2014 19:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akrabat/e330dd179677a3981fc9 to your computer and use it in GitHub Desktop.
Save akrabat/e330dd179677a3981fc9 to your computer and use it in GitHub Desktop.
Recursive grep with surround info and no vcs matches
#!/bin/sh
grep -C 2 -n -r $@ . | egrep -v ".git|.svn|swp|cache"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment