shell脚本如下:
#!/bin/bash
NUM1=100
MUM2=200
if (($NUM1 > $NUM2));then
echo "This $NUM1 is great!"
else
echo "This $NUM2 is great!"
fi
报错如下:
if.sh: line 4: ((: 100 > : syntax error: operand expected (error token is "> ")
This is great!
希望大家可以推荐一些不错shell脚本的视频教程
阅读全文
收起全文