shell|基本运算符

《shell|基本运算符》 image.png
《shell|基本运算符》 image.png
《shell|基本运算符》 image.png
《shell|基本运算符》 image.png

关系运算符

《shell|基本运算符》 image.png

样例 vi relationChar.sh

《shell|基本运算符》 image.png

运行

《shell|基本运算符》 image.png

布尔运算符

《shell|基本运算符》 image.png

vi booleanTest.sh

《shell|基本运算符》 image.png

运行测试

《shell|基本运算符》 image.png

逻辑运算符

《shell|基本运算符》 image.png
《shell|基本运算符》 image.png

《shell|基本运算符》 image.png

字符串运算符

《shell|基本运算符》 image.png

样例

《shell|基本运算符》 image.png

判断是否空,不空则返回true

《shell|基本运算符》 image.png

运行结果

《shell|基本运算符》 image.png

文件测试

《shell|基本运算符》 image.png

vi /opt/fileTest.sh

《shell|基本运算符》
《shell|基本运算符》 image.png

    原文作者:志辉聊码
    原文地址: https://www.jianshu.com/p/a55c475ae6ed
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞