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