how to search for folders in bash code example Example: terminal how to find a directory find . -type d | grep DIRNAME