1、变量嵌套取值
bitrate1=100
numbers=1
eval echo \$bitrate${numbers} >tmpbit
tmpbitrate=`cat tmpbit`
2、判断变量为空
if [ ! -n $bitrate ];then echo null;fi
转载于:https://blog.51cto.com/3635076/1860226
1、变量嵌套取值
bitrate1=100
numbers=1
eval echo \$bitrate${numbers} >tmpbit
tmpbitrate=`cat tmpbit`
2、判断变量为空
if [ ! -n $bitrate ];then echo null;fi
转载于:https://blog.51cto.com/3635076/1860226