Created
December 22, 2008 21:35
-
-
Save mileszs/39133 to your computer and use it in GitHub Desktop.
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
# Find all files containing a string with context | |
# Find all files containing a certain string, starting | |
# in the current directory, recursively. | |
# This will also provide some context, by printing 3 lines | |
# before and after the match (see the 'C3' argument to 'egrep'). | |
find ./ -name '*.rb' | xargs egrep -nC3 'def initialize' | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment