Skip to content

Instantly share code, notes, and snippets.

@steveinatorx
Created August 13, 2016 21:42
Show Gist options
  • Save steveinatorx/41f7e099c1690e327daed4f16a0b9287 to your computer and use it in GitHub Desktop.
Save steveinatorx/41f7e099c1690e327daed4f16a0b9287 to your computer and use it in GitHub Desktop.
super simple recursive grep exclude node_modules
#!/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