File

Check if a file exists:

if [ -f /path/to/testfile ]
then
    echo testfile exists!
else
    exit 1
fi