3
Shell脚本-意外令牌'else'附近的语法错误
使用以下shell脚本,为什么我会出错 syntax error near unexpected token `else' Shell脚本 echo "please enter username" read user_name echo "please enter password" read -s pass echo ${ORACLE_SID} SID=${ORACLE_SID} if ["${ORACLE_SID}" != 'Test'] then sqlplus -s -l $USER_NAME/$PASS@$SID <<EOF copy from scott/tiger@orcl insert EMP using select * from EMP exit EOF else echo "Cannot copy" …