shell if 判断,这个错是怎么回事 res2内容为: xxx yyy zzz
res2=$(echo-e"$res1\n"|awk-vn=$n'{if($1>=n)print$2}');if[$res2==""]thenexit;然后报了个错:li...
res2=$(echo -e "$res1 \n"|awk -v n=$n '{if($1 >= n) print $2}');
if [$res2 == ""]
then
exit;
然后报了个错:
line 27: [xxx: command not found 展开
if [$res2 == ""]
then
exit;
然后报了个错:
line 27: [xxx: command not found 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询