Return to Snippet

Revision: 38256
at December 29, 2010 22:33 by haureal


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