#!/bin/sh
if [-d "/backups"]; then
echo "Directory /backups exists"
else
echo "Directory /backups does not exists"
fi
若要檢查檔案是否存在則-d改為-f