What command can be used to check if a directory exists or not, within a Bash shell script?
To check more than one directory use this code:
if [ -d "$DIRECTORY1" ] && [ -d "$DIRECTORY2" ] then # Things to do fi