/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
FILE="/etc/hosts" if [ -f $FILE ]; then echo "File ${FILE} exists" else echo "File ${FILE} does NOT exists" fi
FILE="/etc/hosts" if [ -f $FILE ]; then echo "File ${FILE} exists" else echo "File ${FILE} does NOT exists" fi