新增情境：檢查 iptables log 是否有持續收錄

NO_LOG=0
NOWLOGS=$(grep iptables /var/log/messages| wc -l)
PASTLOGS=$(cat n_of_log)

if [ $NOWLOGS == $NO_LOG ]; then
    echo "no business today"

elif [ $NOWLOGS -eq $PASTLOGS ]; then
    echo "no business during checking points"

elif [ $NOWLOGS -gt $PASTLOGS ]; then
    echo "New logs logged"
    echo "$NOWLOGS" > n_of_log

else
    echo "refresh n_of_log"
    echo "$NOWLOGS" > n_of_log
fi