关于shell脚本监控端口数的问题

我这里有一个脚本,内容如下:
#!/bin/bash
num=$( netstat -nat | grep '80' | grep 'ESTABLISHED' | wc -l )
if [ "${num}" > "30" ];then
echo "80 port connection is too big,number is ${num}"
else
echo "80 port is ok,number is ${num}"
fi
现在发现每次运行脚本时总是打印
80 port connection is too big,number is 某值,
那怕这个值小于30也是打印这句话,后面的else貌似从没有被执行过,请问这是什么情况引起的?

 if [ "${num}" -gt "30" ]

问题解决了,是使用的这种方式, if [ "${num}" -gt $[19] ];then
if [ "${num}" -gt "19" ] 这种也可以