Created
October 23, 2014 19:02
-
-
Save jbodah/2dd6e0e6dd5e1b7b5f94 to your computer and use it in GitHub Desktop.
recursive subdirectory grep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grep all files in this directory (and subdirectories) that end in .rb and contain 'guests = self.guests' | |
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
Can be used in vim to jump to a file too
:grep -r 'guests = self.guests' . --include \*.rb