编写的shell脚本运行sh后,总是提示unexpected opetator,无法输出正确结果 最后发现,因为shell脚本里面含有判断符号“[ ]”,可能sh不知处判断符号[ ],换成bash命令后即可解决