1)数值比较测试
制作一个脚本,实现输入分数,可以判断该分数为:优秀90+、及格60+、不及格60-
2)字符串比较测试
案例:通过脚本扫描某个IP地址,希望扫描结果为:通则显示UP,不通则显示down
Shell while语句详解https://blog.csdn.net/weixin_46044975/article/details/121976809https://blog.csdn.net/weixin_46044975/article/details/121976809Shell变量详解https://blog.csdn.net/weixin_46044975/article/details/121975674https://blog.csdn.net/weixin_46044975/article/details/121975674
Shell for语句详解https://blog.csdn.net/weixin_46044975/article/details/121978038