Skip to content

Instantly share code, notes, and snippets.

@ohjho
Last active October 15, 2019 03:32
Show Gist options
  • Save ohjho/867076960b31a8b2617bb1f746b88138 to your computer and use it in GitHub Desktop.
Save ohjho/867076960b31a8b2617bb1f746b88138 to your computer and use it in GitHub Desktop.
use grep to search for files containing a given string
grep -R --exclude-dir=node_modules 'some pattern' /path/to/search
grep -R --exclude-dir={node_modules,.git} 'some pattern' /path/to/search
@ohjho
Copy link
Author

ohjho commented Oct 15, 2019

Reference

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