Return to Snippet

Revision: 57716
at June 7, 2012 02:51 by munrobaggers


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