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