... find a word in certain files

by zet — last modified Jul 24, 2012 07:26 AM
find . -type f -name "setup.py" -exec grep -il 'plone.app.theming' {} \;

found on:

http://www.devdaily.com/blog/post/linux-unix/combine-find-grep-search-subdirectories

 

exclude certain subdirectory of the search:

find . -type f -not -path "plone.app.theming*" -exec grep -il 'plone.app.theming' {} \;

found on:

http://blog.tcmacdonald.com/content/exclude-directories-bash-find