Return to Snippet

Revision: 69832
at September 16, 2015 18:38 by b0tanik


Initial Code
FILE="/etc/hosts"
if [ -f $FILE ]; then
  echo "File ${FILE} exists"
else
  echo "File ${FILE} does NOT exists"
fi

Initial URL


Initial Description


Initial Title
Check if a file exists

Initial Tags


Initial Language
Bash