shell 判断字符串长度

ID=12345

if [ ${#ID} -eq 5 ];then

    echo "5"

fi

 

posted on 2019-06-27 18:14  快乐编程呀  阅读(1139)  评论(0)    收藏  举报

导航