/ Published in: Bash
Expand |
Embed | Plain Text
DIR="/etc" if [ -d $DIR ]; then echo "Folder ${DIR} exists" else echo "Folder ${DIR} does NOT exists" fi
You need to login to post a comment.
DIR="/etc" if [ -d $DIR ]; then echo "Folder ${DIR} exists" else echo "Folder ${DIR} does NOT exists" fi
You need to login to post a comment.