${#parameter}
Parameter length. The length in characters of the value of
parameter is substituted. If parameter is * or @, the value
substituted is the number of positional parameters. If parame-
ter is an array name subscripted by * or @, the value substi-
tuted is the number of elements in the array.
${#var}不是对变量进行进制转换吗?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |