shell获取字符串长度

string="abcd"
echo ${#string} #输出 4

  

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/9671133.html