Search string in specific directory
By simanta
grep -r -n “<search string here>” <directory path>
rgrep -n “<search string here>” <directory path>
Tags: grep, linux
This entry was posted on July 7, 2008 at 12:05 pm and is filed under linux. 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.
February 4, 2009 at 10:47 am |
The search string may consists single quote(‘) or double quote(“). In that situation, escape character(\) can be used.
Example:
grep -r -n “class=\”title\”" /var/www/html