shell 遇到的问题

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