grep search all files in directory for string and return file code example Example: grep search for string in directory grep -nr 'yourString*' .