how to use grep to search in a directory code example Example: grep search for string in directory grep -nr 'yourString*' .