Shell的字符串处理

计算字符串的长度

a 语法 说明
方法1 ${ #string}
方法2 expr length “$string” string有空格必须加双引号
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×