shell腳本中找出大於某值而且小於某值的數值

在shell編程中,咱們知道大於、不大於、小於、不小於的表示方法:shell 那麼,如果找出某值大於10而且小於15應該怎麼寫呢?編程 中間用  -a  鏈接就行了,千萬不要用&&。spa   count3=0方法 uu=1co uu0=5 for line in `cat aa.sh` do if [ $line -ge $uu -a $line -le $uu0 ] then count3=$
相關文章
相關標籤/搜索