Page 1 of 1

Grep the code ? how to ?

Posted: Thu Aug 03, 2006 5:05 pm
by Money_YaY!
I know basics of grep regex but I have only used it to destroy files to remove crap ..

How do I use it to digg through source ? As I have been told to use it before.. Say I want to find what opengl drawtype the lamps are giving off in the 3d view.. What kinda way would I use grep to seek out the details of this source?

Is it via terminal? Or in a text editor? On OSX but we have lots of unix stuff and regex tools but no emacs please.. i am not THAT comand line savy

Posted: Thu Aug 03, 2006 5:27 pm
by SirDude
in a terminal you cd to your blender root directory
then use grep -r "string" *

to look for the word string.

The following documentation is a bit old but teaches you how
to find things in the blender code base.... ... 184.0.html