SH или Bash подтверждают, если файл не существует

FILE=/etc/docker
if [ ! -f "$FILE" ]; then
    echo "$FILE does not exist."
fi
Evil Echidna