Hello everybody,
I know a very useful command,that is:
Code:
$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:
Code:
/data/thisfilecontaintext.txt
sometext is inside this file
/data/anotherfile
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.
Best Regards.