Home ›
Grep (search) through files in multiple folders avoiding .svn directoriesGrep (search) through files in multiple folders avoiding .svn directories
Submitted by Benjamin Melançon on October 12, 2007 - 9:25am
How to grep through all modules and include files in the Drupal code base
http://www.drupal4hu.com/node/78
grep LOWER modules//.{module,inc} includes/*inc
And everybody has their own way. See the link.
Comments
"LOWER" is the example word
"LOWER" is the example word being searched for above.
This has to be run from the drupal root directory.
Better at dealing with
Better at dealing with nested directories:
grep -nHR sought_string /path/to/root/directory
http://agaricdesign.com/note/how-grep-through-insanely-nested-folders-find-string
Post new comment