1,与 “-a” : a是and
if [ 条件1 -a 条件2 ] ;then
shell order
shell order
…
fi
2, 或 “-o” : o 是or
if [ 条件1 -o 条件2 ] ;then
shell order
shell order
…
fi
3,非 “!” : !是not
if [ ! 条件 ] ;then
shell order
shell order
…
fi
————————————————
版权声明:本文为CSDN博主「dragon_cdut」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/renlonggg/article/details/53997084
posted on
2022-05-20 10:48 莫水千流
阅读(
23
) 评论(
) 编辑
Original: https://www.cnblogs.com/zhoug2020/p/16291531.html
Author: 莫水千流
Title: shell order
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/529545/
转载文章受原作者版权保护。转载请注明原作者出处!