I am trying to assign an array length to a variable.
servers=(apple orange) len = ${#servers[@]}
it says len command not found. why?
See Question&Answers more detail:osI am trying to assign an array length to a variable.
servers=(apple orange) len = ${#servers[@]}
it says len command not found. why?
See Question&Answers more detail:os