Value too great for base (error token is “09”)

后端 未结 6 1645
我寻月下人不归
我寻月下人不归 2020-11-27 06:31

When running this part of my bash script am getting an error

Script

value=0
for (( t=0; t <= 4; t++ ))
do
d1=${filedates[$t]}
d2=${filedates[$t+1]         


        
6条回答
  •  醉梦人生
    2020-11-27 07:35

    You don't need the $ and the {} in an arithmetic expansion expression. It should look like this:

    compare=$((SEC/(60*60*24)))
    

提交回复
热议问题