shell 遇到的问题
时间:2021-04-10 16:08:30
收藏:0
阅读:31
1、 -bash: [: too many arguments
[root@ceph-104 home]# if [ $count eq 0 ]; then echo ‘Not found ‘ ${PROCESS} ‘process!‘; exit 0; fi
-bash: [: too many arguments
原因是shell 变量匹配
需要将$count 修改成 "$count "
原文:https://www.cnblogs.com/fyusac/p/14640819.html
评论(0)