Return to Snippet

Revision: 58567
at July 22, 2012 06:42 by truespire


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