shell获取字符串长度

  sre
echo {#str}
echo{str} | awk '{print length(0)}'
echostr | awk -F "" '{print NF}'
echo {str} |wc -L
echo -nstr |wc -c
expr length {str}
exprstr : ".*"

LEAVE A COMMENT

Captcha Code