123456789101112131415
#!/usr/bin/kshset -xSID=XX1;max=30;SQL_FILE=/home/user/input_file.txt;check="$(grep $SID $SQL_FILE| awk '{print $3}')"; echo "$check"if [ $check -gt $max ]then echo " ALARM";fi