Search string in specific directory

By simanta

grep -r -n “<search string here>” <directory path>

rgrep -n “<search string here>” <directory path>

Tags: ,

One Response to “Search string in specific directory”

  1. simanta Says:

    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

Leave a Reply