Search through text files in Mac OS X

listed in answer

Search through text files in Mac OS X
0 votes, 0.00 avg. rating (0% score)

ANSWER:

I’ve been using retracile’s suggesion:

grep "my string of text" -R .

I am wondering if this can be updated to only list only the file name and path once it finds them because the test inside includes the whole line and makes the results difficult to sift thru.

Thanks!

by DreamGrowers from http://superuser.com/questions/414906