标签:unary operator expected shell报错
if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi
解决方案如下:
if [ "$USER" = "oracle" ];
then
if [ "$SHELL" =
"/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n
65536
fi
fi
或者
if [ [$USER = "oracle" ]]; then
if [ [$SHELL" = "/bin/ksh] ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
shell脚本中 unary operator expected解决办法
标签:unary operator expected shell报错
原文地址:http://ezioauditor.blog.51cto.com/8742351/1749621