grep command to search a file in all directories code example Example: grep search for string in directory grep -nr 'yourString*' .