grep recursively for a string in subdirectories code example Example: grep all files recursively grep -r "texthere" .