if判斷多個條件的寫法如下: (sh)
=================
#!/bin/shA=10B=15
if [ $A = "10" ] && [ $B = "15" ]; then echo "A=10 and B=15"fi
if [ $A = "10" ] || [ $B < $A ]; then echo "A=10 or B<A"fi
沒有留言:
張貼留言