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: find text, grep
This entry was posted
on Monday, November 30th, 2009 at 6:33 pm and is filed under Unix.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.