Guest User

Untitled

a guest
Feb 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. declare -a MYARRAY
  2.  
  3. # Static index
  4. MYARRAY[0]="first value"
  5.  
  6. # Dynamic index
  7. MYARRAY[${i}]="another value"
  8.  
  9. # Access an element of an array
  10. echo "Hello my value is ${MYARRAY[$i]}"
Add Comment
Please, Sign In to add comment