参考资料:
1、shell脚本—-if(数字条件,字符串条件,字符串为空)
https://blog.youkuaiyun.com/yf210yf/article/details/9207147
2、Shell if else 语句
http://wiki.jikexueyuan.com/project/shell-tutorial/shell-if-else-statement.html
3、shell中字符串的比较
https://blog.youkuaiyun.com/tenfyguo/article/details/5753604
524





