找考题网-背景图
单项选择题

shell中,输出字符串str的长度应该用以下哪条语句?()

A.echo ${!str}
B.echo ${#str}
C.echo ${str[*]}
D.echo ${str[@]}

热门试题