grep LOWER modules/*/*.{module,inc} includes/*inc
Add themes, sites/all etc as needed. The interesting trick is the {}.
Commenting on this Story is closed.
grep LOWER modules/*/*.{module,inc} includes/*inc
Add themes, sites/all etc as needed. The interesting trick is the {}.
Commenting on this Story is closed.
I prefer
grep -r search_text .
which searches all files and folders from the current directory downwards. For your example, you could usegrep -r LOWER modules includes
.If you are keeping your source in SVN this will churn out a ton of files in .svn dirs. You can always put a | grep -v \.svn after it, of course. Also, in case you have programming documentation, backup files etc in your dirs then you will also get a ton of false positives.
man grep can do a magic
------
JJm
Custom written Buy Essay - Buy Term papers - Buy Report custom writing service providing custom written papers.
I use cscope, which indexes whatever files you want and leaves you at a sort of search prompt.
After searching, you can select any of the results and immediately open the file to that line.
It's super fast.
It's native to *nix and can be built for windows using cygwin.
See a screenshot
Thanks, it works great. I needed to do
find . -name \*module >>cscope.files
find . -name \*inc >>cscope.files
find . -name \*php >>cscope.files
find . -name \*engine >>cscope.files
find . -name \*theme >>cscope.files
to prepare, but once this is done it's truly useful. Thanks!