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 \;
Written by adamstrawson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Code
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#