I don't know a great deal about commands.
I am using OS X.
I need to find files in a directory with the .php extension and the string 41 somewhere in the file's contents.
I tried using grep.
grep -R 41 *.php
This however only seemed to find files in the cwd and not in sub directories.
I also tried messing with find.
I wasn't able to figure this out.
What am I doing wrong?
Thanks.
41needs to be in the file name, or its content? – Daniel Beck May 31 '11 at 6:51