/ Published in: Bash
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DIR="/etc" if [ -d $DIR ]; then echo "Folder ${DIR} exists" else echo "Folder ${DIR} does NOT exists" fi
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
DIR="/etc" if [ -d $DIR ]; then echo "Folder ${DIR} exists" else echo "Folder ${DIR} does NOT exists" fi