使用 ${#string} 可以得到对应字符串的长度,其等同于C语言中的 strlen() 函数。 $ greeting="hello world" $ echo ${#greeting} ...
確定! 回上一頁