Search recursively in the directory ~/path/ and its subdirectories for any lines that start with 5 alphanumeric characters and print the first 3 results.
grep -RiE "^([[:alnum:]]){5}" ~/path/* | head -n 3