39

shell脚本编程学习笔记-整数二次元比较操作符-林中鸟

 6 years ago
source link: http://blog.51cto.com/10642812/2084230
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.1下表为常用二次元比较操作符我们也可以通过mantest查看提示(1)“<”符号是小于的意思,if[[“$a”<”$b”]],if[[“$a”\<”$b”]]。在单括号中需要转义,因为在shell也用<和>做重定向。(2)“>”符号是大于的意思,if[[“$a”>“$b”]],if[[“$a”>“$b”]]。在单括号中需要转义,因为在shell也用&l

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK