Created
June 24, 2014 07:55
-
-
Save homam/7603e7125263328fcfe6 to your computer and use it in GitHub Desktop.
Find and grep to find a string in all files that match a pattern
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 . -type f -name "package.json" -exec grep -l "\"express\"\\s*:\s*\".*4" {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment