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