bash tip: find and grep through files
It happens once in a while that I want to find all files containing a certain string. I know command-line tools such as grep, cat, and find, but I never remember the right combination to achieve that task. So as to remember and reference it later, I write this small blog post to remind me how to do it:
find . -type f -exec grep YOURSTRING /dev/null {} \; The find .
Read more...