Shell——expr應用案例:打印下面字符串中字符數不大於6的單詞

腳本: #!/bin/bash for i in I am the a hero and you must to learning py do     if [ `expr length $i` -le 6 ]         then              echo $i     fi done   執行結果:  
相關文章
相關標籤/搜索