END使用
[root@bogon ~]# cat d.sh 
#!/bin/bash
#. /etc/init.d/functions
cat <<END
+----------------------------------+
|                                  |
|       This is install python     |
|                                  |
|         1.安装依赖环境           |
|         2.安装pip                |
|         3.安装python3.5    |
|                                  |
+----------------------------------+
END
 
#node 0.
  read  -p "请你输入一个数字:" NUM
#  expr $NUM + 1 &> /dev/null
  if [ "$?" -ne 0 ];then
    echo "对不起,请你输入整数!!!" /bin/false
    exit 1
  elif [ "$NUM" -eq 0 ];then
    echo "对不起,请你输入比0大的数字!!!" /bin/false
    exit 1
  fi
[root@bogon ~]# ./d.sh 
+----------------------------------+
|                                  |
|       This is install python     |
|                                  |
|         1.安装依赖环境           |
|         2.安装pip                |
|         3.安装python3.5    |
|                                  |
+----------------------------------+
                    
                
                
            
        
浙公网安备 33010602011771号