Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Bash print elements in array

for i in ${!myArray[@]}; do
  echo "element $i is ${myArray[$i]}"
done
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Bash #print #elements #array
ADD COMMENT
Topic
Name
6+8 =