$ grep -lir "sometext" * > sometext_found_in.log
I find this format easier to read if your going through lots of files. This way you can open the file in any editor and easily review the file
Image may be NSFW.
Clik here to view.
by David Winterbottom (codeinthehole.com)