#!/bin/sh
##################
#
# Author: Jesko Regenthal
# Version: 0.3
#
#################

FILETOCHECK="$1"

if [ -z "$1" ]; then
        echo "No file was given"
        exit 1
fi

if ls -1 $FILETOCHECK 2>/dev/null 1>&2; then
        echo "File \"$FILETOCHECK\" exists!" 
        exit 2
else
        echo "No \"${FILETOCHECK}\""
        exit 0
fi
