shell获取字符串长度

  sre

5fe1856ab06ef6131.jpg_fo742.jpg

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