变量赋值,等号的前后不能有空格
i = 1 #错误
i=1 #正确
条件判断,[_a_=_b_]里,用下划线表示的空格,不能少!
if [ $oraclemode = 'y' ]
then
oraclemode=' as sysdba'
else
oraclemode=''
fi
shell基础知识
猜你喜欢
转载自jcat.iteye.com/blog/2229364
今日推荐
周排行