shell while 循环 错误 ambiguous redirect 及while 循环变量赋值失效问题
shell while 循环 错误 ambiguous redirect 及while 循环变量赋值失效问题while 循环变量赋值失效问题*会发现 count 变量 无法自增,原因为 管道符读取问题。*
while 循环变量赋值失效问题
heal_info=`gluster volume heal ceshiRep info summary |grep 'Total Number'`
echo "$heal_info"| while read line
do
num
原创
2020-09-21 16:31:34 ·
2168 阅读 ·
0 评论