Skip to content

Instantly share code, notes, and snippets.

@homam
Created June 24, 2014 07:55
Show Gist options
  • Save homam/7603e7125263328fcfe6 to your computer and use it in GitHub Desktop.
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
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