I know a very useful command,that is:
$grep -lir "sometext" *
that will find "sometext" inside files in current directory and in all subdirectory. But, the output is only the files.
How to make it something like this:
sometext is inside this file
i want to search for sometext
Basically, I want the output to print not only the file, but the whole line containing the text I search.
Any comments will be really appreciated.