DIR_ABSOLUTE_PATH=/home/me/somedir if [ -d "$DIR_ABSOLUTE_PATH" ] then echo "$DIR_ABSOLUTE_PATH exists." fi