Found this snippet of code which uses an array in Bash.
unset var1[@]
for i in {0..23}
do
var1[10#$i]="some data"
done
When setting the element with data, what's that 10# in front of the element number for?
I know that for showing the total number of elements you can use echo ${#var1[@]} but I don't think the hash in setting the element has something to do with total size.