Array - Access each elements in a array using for loop
In this article we can learn how to traverse through the array elements we can use for loop in linux
1 arrayNames=( way test auth new )
2 for names in "${arrayNames[@]}"
3 do
4 echo "array elements : $names"
5 done