我无法弄清楚如何确保传递给我的脚本的参数是否为数字.
我想做的就是这样:
test *isnumber* $1 && VAR=$1 || echo "need a number"
有帮助吗?
linux bash shell
bash ×1
linux ×1
shell ×1