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