![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
伍局
这个作者很懒,什么都没留下…
展开
-
shell中的括号
文章目录shell中的括号双括号 "(( ))"shell中的括号双括号 “(( ))”双括号中除了标准运算符之外其他运算符如下表:符号功能var++后增++var先增var–后减–var先减!逻辑取反~位求反**幂运算<<左移位>>右以为&位和|位或&&逻辑和||逻辑或实例: num=10 if ((++num>原创 2020-06-21 10:55:37 · 130 阅读 · 0 评论 -
Shell脚本的条件判断语句
文章目录Shell中的条件语句if条件语句单条件if语句双条件if语句多条件if语句数值判断字符串判读文件判断逻辑判断Shell中的条件语句if条件语句单条件if语句写法① if [condition] then statement fi 写法② if [condition] ; then statement fi双条件if语句写法① if [condition] then statement else statement fi写法②原创 2020-06-19 19:48:12 · 1116 阅读 · 0 评论