标签:
from:Sep 23 2016
mathematical operation:
floating number,bc calculator:
we can also use bc in shell scripts:
if - then - else
number comparison:
n1 -eq n2
n1 -ge n2
n1 -gt n2
n1 -le n2
n1 -lt n2
n1 -ne n2
if - then - elif, notice that the second elif won‘t be executed, though it‘s also right.
strings comarison:
str1 = str2
str1 != str2
str1 < str2
str1 /> str2
-n str1
-z str1
标签:
原文地址:http://www.cnblogs.com/rixiang/p/5901493.html