Colucix,
Can you explain what the 'i' variable is doing in this code? I know that it works but i don't understand what is going on.
Quote:
for ((i=0; i < ${#orignames[*]} ; i++))
|
Specifically, I don't understand what this section means:
I understand that '${#orignames[*]}' returns the length of the array, but in don't understand what 'i < ${#orignames[*]}' means.
Also I assume that
means add 1 to the variable 'i' each time the loop runs. Is that correct?