#!/bin/bash
OLDSUM1=
cat /free/ip_sum/data.sum
### 숫자인지 체크
if [[ $OLDSUM1 =~ ^[0-9]+$ ]]
then
OLDSUM=
echo $OLDSUM1
else
OLDSUM=”0″
fi
echo $OLDSUM