Skip to content

Instantly share code, notes, and snippets.

@jbodah
Created October 23, 2014 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbodah/2dd6e0e6dd5e1b7b5f94 to your computer and use it in GitHub Desktop.
Save jbodah/2dd6e0e6dd5e1b7b5f94 to your computer and use it in GitHub Desktop.
recursive subdirectory grep
# grep all files in this directory (and subdirectories) that end in .rb and contain 'guests = self.guests'
grep -r 'guests = self.guests' . --include \*.rb
@jbodah
Copy link
Author

jbodah commented Oct 23, 2014

Can be used in vim to jump to a file too :grep -r 'guests = self.guests' . --include \*.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment