Last Updated: February 25, 2016
·
611
· adamstrawson

Search directories for string, and save to file

Search directories for string, excluding .git files, and save to file.

find . -exec grep -lr --exclude="*\.git*" "Find me" {} >> filename.txt \;