What command can be used to check if a directory exists or not, within a Bash shell script?
The below find can be used,
find
find . -type d -name dirname -prune -print