Bash Scripting - Arrays
What is the correct way to get the number of elements in a bash array named
servers?servers?${#array[@]} returns the count of elements.serversecho ${#servers[@]} to print number of elements.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions