Variable assignment, there can be no spaces before and after the equal sign
i = 1 #Error
i=1 #Correct
Conditional judgment, in [_a_=_b_], the spaces represented by underscores cannot be less!
if [ $oraclemode = 'y' ]
then
oraclemode=' as sysdba'
else
oraclemode=''
fi
shell basics
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327086902&siteId=291194637
Ranking