Last Updated: February 25, 2016
·
614
· 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 \;