Bash Scripting - Arrays
Find the bug in this script:
myarr=(1 2 3 4)
len=${#myarr[@]}
echo lenmyarr=(1 2 3 4)
len=${#myarr[@]}
echo lenecho len prints the literal string 'len', not the variable value.echo $len to print the value stored in variable len.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions