语法错误:预期操作数[错误标记为“/”]

问题描述 投票:0回答:0

DSKUSDPERCENT=$(($DISKUSD * 100 / $limit))
遇到类似错误

语法错误:预期操作数(错误标记为“/”),其中 limit=$OPTARG 在处理命令行选项中定义

这里我无法获取

$limit

的值
Error: check_disk.sh: line??: 119 * 100 / : syntax error: operand expected (error token is "/ ")
bash shell nagios
© www.soinside.com 2019 - 2024. All rights reserved.