Lesson 1 of 0
In Progress

How to access data in an indexed array

Before this video, I added “g” to the example array and I used a command to unset a like this:

example=$( unset example[5] )
This is fundamentally flawed because when I ran this, it removed the first item in the array – this is because the first item is all that is called when I said “example=” instead I’d need to say “example[6]=” 

If you have questions about this – drop them in slack and I’ll be happy to explain in detail 🙂