The power of less

Goal: I want to find some text called mytext within all php files in a directory. I also want to display all the matches and highlight them.
If this is what you want try this:

grep -Hin "mytext" *.php | less +/mytext

Tags: ,

Leave a Reply