50
shell中的逻辑判断-LavenDer7n's Blog-51CTO博客
source link: http://blog.51cto.com/lavender7n/2069908
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.if判断①简单判断,如果满足条件,返回OK#!/bin/basha=5if [ $a -gt 3 ]then echo "OK"fi[root@localhost test_shell]# ./test.shOK②两个条件时,可以使用elif及el
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK