if[]一定要这样写
if [ xxx ] ;then
"["和"]"左右都要有空格,要不然就报错
附上if语句格式
#1 if [ xxx ] ; then xxx fi #2 if test xxx then xxx fi
shell中的if语句 - 开始认识 - 博客园 (cnblogs.com)
标签:语句,为什么,cnblogs,博客园,xxx,报错,不好,fi From: https://www.cnblogs.com/wYYBLH/p/16944340.html
if[]一定要这样写
if [ xxx ] ;then
"["和"]"左右都要有空格,要不然就报错
附上if语句格式
#1 if [ xxx ] ; then xxx fi #2 if test xxx then xxx fi
shell中的if语句 - 开始认识 - 博客园 (cnblogs.com)
标签:语句,为什么,cnblogs,博客园,xxx,报错,不好,fi From: https://www.cnblogs.com/wYYBLH/p/16944340.html