Created
August 13, 2016 21:42
-
-
Save steveinatorx/41f7e099c1690e327daed4f16a0b9287 to your computer and use it in GitHub Desktop.
super simple recursive grep exclude node_modules
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
#!/bin/bash | |
find . \( -name node_modules -prune \) -o -name "*.*" -exec grep --color -Hn $1 {} 2>/dev/null \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment