/ Published in: Bash
Fast and easy way to find a keyword inside of files located inside of a directory tree. (eg: looking for a function foo, inside of your applications directory.) This command will display a list of files which contain function foo.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find . -name “filenames†-exec grep -i -H -n ‘texttofind’ {} \;
URL: http://www.howtogeek.com/howto/ubuntu/find-files-containing-search-terms-on-ubuntu/