Return to Snippet

Revision: 42280
at March 2, 2011 18:49 by dnkysp


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
file

Initial Language
Bash